All Docker commands can be found by executing the following help
command:
$ docker help
To see all the options of any particular Docker command, we can use docker help <command>
, for example:
$ docker help run
There is also a very good explanation of all Docker commands on the official Docker page at https://docs.docker.com/engine/reference/commandline/docker/. It's worth reading, or at least skimming through.
In this chapter, we've covered the most useful commands and their options. As a quick reminder, let's walk-through them:
Command | Explanation |
| Build an image from a Dockerfile |
| Create an image from the container |
| Show changes in the container |
| List images |
| Display Docker information |
| Show the configuration of the Docker image/container |
| Show logs of the container |
| Manage networks |
| Show all ports exposed by the container |
| List containers |
| Remove a container... |