I’ve little bit of an aversion to installing new software on my computer. Especially if I only want to try something out, something that I won’t use very often or if I don’t really trust to source. There Docker comes in handy. I usually just spwan up a container, install the software, play around a little and then throw it away again. I did the same today when I wanted to try out Hugo.
Here I collect Docker commands that I found very useful, but hard to remember. I don’t go into details here. It’s just a collection for lookup purposes. But there are also more concrete examples on this site. Managing Containers List all containers, including stopped ones: docker ps -a Attach Shell Start and attach bash in a new container with mounting and port forwarding: docker run -v $PWD/data:/home/data -p 8080:8080 -it ubuntu:latest /bin/bash Start and attach to an existing container: