Some useful docker tips and tricks
From linux host you can access to host services (localhost:port service on host) within a docker container by using special ip 172.17.0.1:<samehostserviceport>
Guide from https://poweruser.blog/how-to-install-docker-on-fedora-32-f2606c6934f1
- disable cgroups v2 via a kernel parameter:
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0" reboot
- disable selinux:
-
Edit the /etc/selinux/config file, run:
sudo vi /etc/selinux/config
-
Set SELINUX to disabled:
SELINUX=disabled
-
Save and close the file in vi/vim. Reboot the Linux system:
sudo reboot
-
Follow this instruction to install docker: https://docs.docker.com/engine/install/fedora/
-
Follow this instruction for post-install: https://docs.docker.com/engine/install/linux-postinstall/
-
Install docker-compose
sudo dnf -y install docker-compose
-