When I double click on the Docker for Mac icon in the menu bar, I see an icon appearing: I have 2 questions: 1) How can I get the same effect through the command line? - as of today, the command line just gives me the docker commands Mac:bin romain$ docker Usage: docker OPTIONS COMMAND arg. docker -help -v -version A self-sufficient runtime for containers. When Docker for Mac says that it is running, it means that the virtualized Docker environment is running on your machine. Docker for Mac uses to run a small Linux VM on your Mac. Docker itself runs as a daemon inside of that VM.
![Docker Docker](/uploads/1/2/5/4/125424707/536953801.png)
Once everything is finish downloading. You can now execute your PHP command line application. Docker-compose exec cli bash. This will open a new terminal inside the container. The container has now everything you need to execute your php app! That is, ranging from Composer, Git, PHP extensions, vim, mysql clients etc. Since Docker version 1.3 you are able to create a new instance of a shell using exec command: sudo docker exec -i -t 878978547 bash 9. Using Docker logs command. In a case of running a Docker container as a daemon (docker run -d ) it may be useful to know what appears on the console output of the running container.
The status in the Docker for Mac menu bar icon shows whether that Linux VM has been started or not. The docker command you can run in the Terminal allows you to interact with the Docker daemon that is running in that Linux VM. You can use the docker command to build images or to create/start/stop containers.