Docker toolbox first-time use

This is another post for beginners and you will learn about docker toolbox first-time use. Also, there are some basic commands mentioned which certainly be used very frequently. Click here to read the previous post.

Using Docker quick-start terminal

Once you launch the docker terminal, it will spin-on the default machine and boot will boot it up with one IP address. While using the quick-start terminal you can run docker commands or alternatively, you can use command prompt for windows to run same commands.

docker-quickstart-terminal

Type the commanddocker run hello-world and press RETURN. If everything goes fine, you will see this output

 

 

Useful docker commands

You need to run a couple of commands and here is the brief description for each one of them. Furthermore, you can refer to the detailed information in the official documentation.

1. docker pull nginx This will pull the nginx image from docker hub repository.

2. docker run xxx This will run some commands as per your requirements.

3. docker container ls -a You may need to run this command to check the details for all containers

4. docker container stop xxx The container can be gracefully stopped by mentioning the name of the container. Similarly, replace Stop keyword with Start to start the container.

docker-machine stop  It will gracefully stop the docker machine and the VirtualBox default machine will be stopped in the backend. As a result, you will be able to preserve all the changes and state of the containers and docker machine.

Furthermore, there are plenty of other commands available to manage containers and docker machine that can use used to achieve certain docker functionality. Finally, in the next post, we will learn how to run Deluge torrent UI in Docker to isolate torrent software from windows.

Leave a Reply

Your email address will not be published. Required fields are marked *