Docker, nginx and firewalld example: Difference between revisions

From BitFolk
Jump to navigation Jump to search
(Created page with "= VPS Setup = See See Installing on BTRFS = Install Firewalld = root@host:~# apt install firewalld = Install Docker = root@host:~# apt install curl")
 
No edit summary
Line 9: Line 9:
= Install Docker =
= Install Docker =


  root@host:~# apt install curl
For docker one needs the docker engine and docker compose. Both installation are documented on [https://docs.docker.com docs.docker.com]. At the time of this writing for the engine it is [https://docs.docker.com/engine/install/debian/ Install Docker Engine on Debian] and for docker compose [https://docs.docker.com/compose/install/linux/ Install the Compose plugin].
 
Since I do not want docker use iptables I apply the configuration like stated below.
 
  root@host:~# cat /etc/systemd/system/multi-user.target.wants/docker.service | grep iptables
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --iptables=false
 
After altering docker.service I rebooted to apply the changes. To see the changes do a <tt>iptables -L</tt> before and after reboot.

Revision as of 04:32, 17 December 2022

VPS Setup

See See Installing on BTRFS

Install Firewalld

root@host:~# apt install firewalld

Install Docker

For docker one needs the docker engine and docker compose. Both installation are documented on docs.docker.com. At the time of this writing for the engine it is Install Docker Engine on Debian and for docker compose Install the Compose plugin.

Since I do not want docker use iptables I apply the configuration like stated below.

root@host:~# cat /etc/systemd/system/multi-user.target.wants/docker.service | grep iptables
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --iptables=false

After altering docker.service I rebooted to apply the changes. To see the changes do a iptables -L before and after reboot.