Build a remote server of Docker Engine server via SSH

Background

There appears to be lots of screen recordings that occupy gigabytes of storage space locally on an MBP, which need to be compressed. While the local tasks running on an MBP may cause the heat dissipating fan to roaring, making use of an idle desktop seems a viable solution to accelerate the workflow.

Miscellanies about initializing an Ubuntu Server (II)

Error: Permission denied … when running Docker (perviously seen)

Better solution than before:

1
2
3
sudo groupadd docker
sudo usermod -aG docker $USER
sudo service docker restart

[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
2
sudo snap services docker
sudo snap restart docker

Local Build Preparation

This is likely to be a cure-all:

1
sudo apt install -y build-essential