Easy installation of Docker with snap (1 command)

Install command

$ sudo snap install docker

only this.

By the way, docker-compose is also installed at the same time.

The following is a memorandum.

What is Snap?

Image: [https://snapcraft.io/about](https://snapcraft.io/about)

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.

Install snapd

For Ubuntu

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

For CentOS 7.6+

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

For Raspberry Pi

$ sudo apt update
$ sudo apt install snapd

Reboot once

$ sudo reboot

Recommended Posts

Easy installation of Docker with snap (1 command)
Easy environment construction of MySQL and Redis with Docker and Alfred
Docker installation
Docker command
Getting Started with Docker for Mac (Installation)
Dealing with composer installation errors in Docker
Easy JSON database experience with Docker ~ Try the latest version of Couchbase Server
Memorandum docker command
Self-hosting with Docker of AuteMuteUs in Windows environment
Docker command list
Environment construction command memo with Docker on AWS
Easy JUnit test of Elasticsearch 2018 version with embedded-elasticsearch
Simple installation of nginx and Docker using ansible
Docker command memo
docker basic command
Docker command summary
Docker command memorandum
[Docker] Command summary
[Docker] Command list
Let's play with Minishift! Easy experience of kubernetes
Easy to display hello world with Rails + Docker
Easy setup to run docker command without sudo (Linux)
Create a Jar file with two lines of command
Build an environment of Ruby2.7.x + Rails6.0.x + MySQL8.0.x with Docker
Introduction of Docker --Part 1--
Docker installation on CentOS 6
Docker installation and initialization
Launch MariaDB with Docker
Rails deploy with Docker
Run Pico with docker
Explode Docker with WSL2
Use Puphpeteer with Docker
Docker Machine command memo
Operate Emby with Docker
Try WildFly with Docker
Use ngrok with Docker
Run Payara with Docker
docker error delete command
[Docker] Connection with MySQL
Php settings with Docker
docker command personal summary
Getting Started with Docker
Disposable PHP with Docker
Docker installation on WSL2
Docker command cheat sheet
Install Composer with Docker
Installation of jenkins 2.60.1-1 0 or later fails on Ubuntu 14.04 (with grudges)
Getting Started with GitHub Container Registry instead of Docker Hub