Overview I put Docker on the development server, so work notes at that time (There is no basic problem if you follow the official document)
Docs Docker: https://docs.docker.com/engine/install/fedora/ Docker Compose: https://docs.docker.com/compose/install/#install-compose-on-linux-systems
How to install docker
$ sudo dnf -y install dnf-plugins-core
$ sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
$ sudo dnf install docker-ce docker-ce-cli containerd.io
$ sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
$ reboot (Reboot)
$ sudo systemctl start docker
$ sudo docker run hello-world
OK if the following is displayed
Hello from Docker!
...
To start Docker automatically at boot time
$ sudo systemctl enable docker
To use without sudo
sudo usermod -aG docker [YOUR-USER]
How to install docker compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
I was told that there is no python here
$ sudo dnf install python
Then re-execute the following
$ sudo chmod +x /usr/local/bin/docker-compose
It's easy. (What's that easy?)
Recommended Posts