Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
content:serverbasics:docker [2024/05/18 23:04] – [Check Docker install] Danielcontent:serverbasics:docker [2024/06/04 14:44] (aktuell) Daniel
Zeile 1: Zeile 1:
 ====== Docker (rootless) + Portainer ====== ====== Docker (rootless) + Portainer ======
  
-Docker is a powerful solution for setting up Services. This on will give you hints how to setup Docker in a good way.+Docker is a powerful solution for setting up Services. This short Introducion will give you hints how to setup Docker in a good way in userspace, so no root-access is needed for Docker.
  
 Currently i am Experimenting on that topic, so maybe this documentation will be ready to use, maybe not. Currently i am Experimenting on that topic, so maybe this documentation will be ready to use, maybe not.
Zeile 22: Zeile 22:
 ===== Packages NOT to install ===== ===== Packages NOT to install =====
  
-I had really a lot of troubles with the package in the AddOn- Repository: ''[[https://download.opensuse.org/repositories/Virtualization:/containers/${releasever}/|https://download.opensuse.org/repositories/Virtualization:/containers/${releasever}/]]'' while they are not installing docker the same way, that docker would do. For example they will not be installed in User-Subspace only, but will use systems Docker executables installed in global paths. This is a problem when using btrfs - as btrfs is not fully compatible with docker. So i won't use this any more.+I had really a lot of troubles with the package Docker-Rootless in the AddOn- Repository: ''[[https://download.opensuse.org/repositories/Virtualization:/containers/${releasever}/|https://download.opensuse.org/repositories/Virtualization:/containers/${releasever}/]]'' while they are not installing docker the same way, that docker would do. For example they will not be installed in User-Subspace only, but will use systems Docker executables installed in global paths. This is a problem when using btrfs - as btrfs is not fully compatible with docker. So i won't use this any more.
  
 So i disabled the following packages and locked them to never install: So i disabled the following packages and locked them to never install:
Zeile 191: Zeile 191:
  
 Ceck the Environement to have the settings: Ceck the Environement to have the settings:
- 
 <code> <code>
 +
 docker@pcserver2023:~> Abgemeldet docker@pcserver2023:~> Abgemeldet
 Connection to localhost closed. Connection to localhost closed.
Zeile 205: Zeile 205:
  
 Now check ''docker info'': Now check ''docker info'':
 +
 <code> <code>
 docker@pcserver2023:~> docker info docker@pcserver2023:~> docker info
Zeile 262: Zeile 263:
 </code> </code>
  
-Important things:+==== Additional knowledge ====
  
   * Storage driver and FS-Type : overlay2 should always be used, btrfs is outdated! XFS and d_type are important!   * Storage driver and FS-Type : overlay2 should always be used, btrfs is outdated! XFS and d_type are important!
   * CGroup Version needs to be 2 or better   * CGroup Version needs to be 2 or better
 +  * If you see Docker complaining about Module aufs at start: do not care about - that module is obsolete
 +
 +===== IP-Filter =====
 +
 +When starting Docker, an the log says:
 +
 +<code>
 +level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: could not insert 'br_netfilter': Operation not permitted\ninsmod /lib/modul>
 +level=info msg="skipping firewalld management for rootless mode"
 +
 +</code>
 +
 +You first need to load the module with modprobe.
 +
 +For system startup, use ''/etc/modules-load.d''  and creat e a file ''docker-rootless.conf''  in it, containing that module.
  
 ===== IPTables ===== ===== IPTables =====
Zeile 286: Zeile 302:
  
 </code> </code>
- 
  
 ===== Configuring Docker Daemon ===== ===== Configuring Docker Daemon =====
Zeile 364: Zeile 379:
  
 </file> </file>
- 
  
 ===== Create a place for Yamls ===== ===== Create a place for Yamls =====
  • content/serverbasics/docker.txt
  • Zuletzt geändert: 2024/06/04 14:44
  • von Daniel