Changes

Jump to navigation Jump to search
538 bytes added ,  14:02, 27 October 2021
no edit summary
Line 399: Line 399:     
===Files to modify?===
 
===Files to modify?===
 +
 +
For now I have created a hardcoded file with the content from below
    
  mkdir -p /usr/lib/systemd/system/docker.service.d
 
  mkdir -p /usr/lib/systemd/system/docker.service.d
   −
  /etc/e-smith/templates/usr/lib/systemd/system/docker.service.d/50koozali.conf
+
  /usr/lib/systemd/system/docker.service.d/50koozali.conf
   −
  40service
+
If we template then we would use two fragments like this:
 +
 
 +
  /etc/e-smith/templates/usr/lib/systemd/system/docker.service.d/50koozali.conf/40service
    
  [Service]
 
  [Service]
Line 419: Line 423:  
  Restart=always
 
  Restart=always
   −
  80install
+
  /etc/e-smith/templates/usr/lib/systemd/system/docker.service.d/50koozali.conf/80install
    
  [Install]
 
  [Install]
Line 425: Line 429:     
  expand-template /usr/lib/systemd/system/docker.service.d/50koozali.conf
 
  expand-template /usr/lib/systemd/system/docker.service.d/50koozali.conf
 +
 +
 +
===Docker Networking===
 +
 +
Docker now does it's own thing with IPTables and it is hard to disable - we need to be careful here
 +
 +
https://docs.docker.com/network/iptables/
 +
 +
How do we check conflicts?
 +
 +
ip addr show docker0
 +
 +
docker network ls
 +
 +
docker network inspect bridge
 +
 +
    
===Docker Compose===
 
===Docker Compose===

Navigation menu