Often I forget steps required to install docker via snap. Here are the steps for record-keeping purpose:
Preparation
$ sudo apt-get update
Install docker
Install command: $ sudo snap install docker
Test: $ docker --version
would show something like: Docker version 19.03.11, build dd360c7
Post-install task
From an archived this url, follow these steps:
Create and join the docker group:
$ sudo addgroup --system docker
$ sudo adduser $USER docker
$ newgrp docker
Restart
$ sudo snap disable docker
$ sudo snap enable docker
Test
docker --rm -p 80:80 seoul4/hostnameprint
Top comments (0)