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/04/22 10:14] Danielcontent:serverbasics:docker [2024/05/18 11:11] (aktuell) – [Update] Daniel
Zeile 277: Zeile 277:
 ''~/.config/docker/daemon.json'' ''~/.config/docker/daemon.json''
  
-**by default, the path and the file is not existent, create it within the docker user**.+**by default, the path and the file is not existent, __create it new__  within the docker user**.
  
-For example, enable ipv6. See [[https://docs.docker.com/config/daemon/ipv6/|https://docs.docker.com/config/daemon/ipv6/]] for details.+For example, enable IPv6. See [[https://docs.docker.com/config/daemon/ipv6/|https://docs.docker.com/config/daemon/ipv6/]] for details.
 <file> <file>
  
Zeile 285: Zeile 285:
  "experimental": true,  "experimental": true,
  "ip6tables": true,  "ip6tables": true,
 + "ipv6": true,
 + "fixed-cidr-v6": "fd12:3456:789a:1::/64",
  "log-opts": {  "log-opts": {
    "max-size": "10m",    "max-size": "10m",
Zeile 292: Zeile 294:
  
 </file> </file>
 +
 +You need to adjust cidr to match your network, check first 4 blocks of ''ip addr''
  
 Notice: Don't use ''userns-remap''  - this won't work and makes no sense in rootless. Notice: Don't use ''userns-remap''  - this won't work and makes no sense in rootless.
Zeile 325: Zeile 329:
  
 Your done with the compose plugin Your done with the compose plugin
 +
 +===== Update =====
 +
 +If you want to update your docker- installation, there is not update- process but to use the same script again:
 +
 +<file>
 +#!/bin/bash
 +#Upgrade docker rootless and plugin
 +systemctl --user stop docker
 +rm -f ~/bin/dockerd
 +curl -fsSL https://get.docker.com/rootless | sh
 +#need to give the new binary permissions to acces privileged network ports (beneath 1024)
 +sudo setcap 'cap_net_bind_service=+ep' ~/bin/rootlesskit
 +
 +# If you installed docker compose, check the newest version first at https://github.com/docker/compose/releases/latest
 +curl -SL https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
 +
 +</file>
 +
  
 ===== Create a place for Yamls ===== ===== Create a place for Yamls =====
Zeile 337: Zeile 360:
  
 As always, SSH into your docker- user and than create the folders and yml-files for docker compose and portainer. As always, SSH into your docker- user and than create the folders and yml-files for docker compose and portainer.
- 
 <code> <code>
 +
 obel1x@server:~> ssh localhost -l docker obel1x@server:~> ssh localhost -l docker
 Password: Password:
  • content/serverbasics/docker.1713780899.txt.gz
  • Zuletzt geändert: 2024/04/22 10:14
  • von Daniel