Docker config info¶
docker system info
List of images¶
docker images
Delete an image¶
docker rmi IMAGE
docker image rm IMAGE
Delete a container¶
docker rm CONTAINER
docker container rm CONTAINER
Container run example¶
docker run --name=gogs -p 10022:22 -p 10080:3000 -v /var/gogs:/data gogs/gogs
This runs a container named gogs. You can connect to it on port 10022 and port 10080 of the host. It stores stuff in /var/gogs on the host, which translates to /data in the container
Automagically start¶
Make sure the container is set to restart. I probably use unless-stopped or always.
Update the settings of a running container¶
docker update can update settings.
docker update --restart unless-stopped prometheus