$ sudo snap install docker
only this.
By the way, docker-compose
is also installed at the same time.
The following is a memorandum.
A software package that works with any Linux distribution. I have the impression that the number of apps distributed in this format has increased in recent years.
The tool required to use Snap is snapd, and if it is installed, you can use the snap
command.
Personally, in addition to Docker, I am indebted to the installation of kubectl
and Google Cloud SDK
.
Recently, EKS Distro was announced and provided in a snap package. I hope it will be easier to build the Kubernetes environment from now on.
Ubuntu16,18,20 etc. are installed from the beginning, but if you need to install snapd based on Ubuntu, use the following command.
$ sudo apt update
$ sudo apt -y install snapd
Add EPEL
$ sudo yum install epel-release
Install snapd
$ sudo yum install snapd
$ sudo systemctl enable --now snapd.socket
$ sudo ln -s /var/lib/snapd/snap /snap
$ sudo apt update
$ sudo apt install snapd
Reboot once
$ sudo reboot
Recommended Posts