Publish Date: Mar 15, 2017 Last Update: Oct 26, 2017
Typically I need to do three things with docker:
Installation. For Arch Linux, just install the
dockerpackage. For Ubuntu, use this link for guidance.
Use docker from user. The key is to add
sudo gpasswd -a user docker newgrp docker
Change the docker image location. This is done by adding the
-gargument to docker initiation. In ubuntu this is in the
/etc/default/docker, while in Arch you need to add to the
Another way is to use a symlink to change the docker folder location.
2.1 Secure port forwarding
By default, port-forwarding options will modify iptables directly, and
ufw configurations will not be working anymore. To avoid such
situations, we should limit the port forwarding to localhost only. We can then
use ssh port forwarding for enhanced security.
docker run -p 127.0.0.1:port1:port2 aa/bb
I use docker for many services, including
Tiny Tiny RSS. You can easily google and find the appropriate container
images to start these services.