Common-Docker-Commands
Some useful commonly used docker commands when working on OSX with VirtualBox.
1) This ensures the boot2docker VM is up and running.
2) This is the command that needs to be executed once for every new terminal window opened, so as to establish connection with the boot2docker vm.
3) This command returns the IP address of the ‘default’ VM running boot2docker
4) Returns a list of VM with boot2docker install and running on VirtualBox.
5) Regenerates the TLS certificates needed to communicated with the ‘boot2docker’ VM.
6) Lists all available docker images
7) Looks the docker process running with a particular container id.
8) Removes a running docker container
9) Removes a particular docker image
10) Kills a particular docker container
11) Connects to the docker container and gives access to the bash shell to execute commands on the container
12) Runs a docker image and does not automatically terminate the container. Allows an easy way to keep the container running and later connect to the containers shell using “docker exec -it “ command.
13) This is not a docker command. This utility is part of the virtual box installation. Allows one to power-off a VM running on VirtualBox
14) Again, not a docker command. A virtual box command to share a directory on the HOST OS (OSX: /Users/esrinivasan/..) with the guest operating system running on VirtualBox. The name of the shared folder is set as “/eks” here.