A little cheat sheet to get started with Docker.
Install Docker
apt install docker.io
Download an image
docker pull [image]
Create a container
docker container create [image]
Start a container / image
docker run [image] &
Stop a container
docker container stop [container]
Remove a container
docker container rm [container]
Remove an image
docker image rm [image]
Save an image to a file
docker image save [image] -o [destination]
Import an image from a file
docker image import [filename] [REPOSITORY][TAG]
Create a container, start it, and configure it to always restart
docker run –restart always [image]
Set an existing container to restart
docker container update –restart always [container]
Inspect a container
docker container inspect [container]
List docker networks
docker network ls
Inspect a network
docker network inspect [network]