An Introductory How-To, With Examples, of Docker Exec

Mauro helps PHP developers hone their craft through his trainings, books, workshops and other tools. The Docker command is a program that can communicate with this daemon and have it run tasks such as build images from Dockerfiles or start and stop containers, among others. For example, let’s say your Dockerfile looks like this: This […]

Mauro helps PHP developers hone their craft through his trainings, books, workshops and other tools. The Docker command is a program that can communicate with this daemon and have it run tasks such as build images from Dockerfiles or start and stop containers, among others. For example, let’s say your Dockerfile looks like this: This means that, when you run a command such as docker exec CONTAINER ls, you’ll get the contents of /var/www/symfony_docker/ as a result.
Source: CloudBees