15 Docker Commands Beginners Should Know

Koji on August 01, 2019

In this post, basically, I don't put options. If you think this command is lacking something important, you will need to check Docker Doc(https:/... [Read Full]
markdown guide
 

I think the most user friendly and easiest to install GUI for managing docker is Portainer. Check it out if you want a quick GUI to manager everything in. Https://portainer.io

Can install it in two simple commands:

Linux Containers

$ docker volume create portainer_data
$ docker run -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Windows Containers

$ docker volume create portainer_data
$ docker run -d -p 8000:8000 -p 9000:9000 --name portainer --restart always -v \\.\pipe\docker_engine:\\.\pipe\docker_engine -v portainer_data:C:\data portainer/portainer
 

Brilliant. Definitely linking to this in a future article on containers, if that's cool.

Edit: Only thing I'd add would be exec. Folks who are getting into Docker likely have some experience on the command line, and being able to drop into a container's shell is hella helpful.

 

yeah i typically usedocker exec -it container_id/container_name bash/sh to get into existing, already running, containers

 
 

Amazing article.

May I use your docker picture on my presentation for docker on Campus Party event (I will give credits and link your article)?

 
 

I think another useful command is docker system prune, especially for beginners in order to start with a fresh state and avoid version problems.

 

Thanks, Michael(@michael_wapp )!
I will add docker system prune

 

You forgot the most important one:docker help 😉

 

exit is not docker command. It is command of your OS shell running in container.

 
 
 

Love your illustration Koji! Please do another article on the commands in Dockerfile.

code of conduct - report abuse