Miscellanies about initializing an Ubuntu Server (II)
Error: Permission denied … when running Docker (perviously seen)
Better solution than before:
1 | sudo groupadd docker |
[UPDATE]
Looks like it is also required to logging out and back so that the group membership change takes effect (how?):
1 | su -s ${USER} |
And this is to check for group membership:
1 | getent group groupname | awk -F: '{print $4}' |
Potential issue when Docker for Ubuntu is installed and managed by Snap
Either systemd
or systemctl
won’t be able to locate or control Docker
, which would occur when Docker is pre-installed with Ubuntu Server. Use snap commands instead:
1 | sudo snap services docker |
Local Build Preparation
This is likely to be a cure-all:
1 | sudo apt install -y build-essential |