General information on docker

Generally you can always have a look at the docs of docker.

Installation of Docker

You have to install docker which is dependent on the operating system you are using.

You can verify that you have docker successfully installed by running:

docker run hello-world

which should print out a “Hello from Docker!” message.

Note

However make sure your user is in the docker group. Check with: groups command. To add your user to the docker group run: sudo usermod -aG docker $(whoami).

Useful commands

For a complete list of commands have a look at official docker cli reference.

  • docker container <command>:

    • ls lists all current active containers

    • ls -a lists all containers

    • rm <container> removes container

  • docker image <command>:

    • ls lists all images

    • rm <image> removes image