docker
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| docker [2024/10/07 19:25] – angelegt xenadmin | docker [2024/10/28 18:52] (aktuell) – xenadmin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Docker ====== | ||
| + | |||
| Quelle: https:// | Quelle: https:// | ||
| + | |||
| <code bash> | <code bash> | ||
| # Add Docker' | # Add Docker' | ||
| - | aptupdate | + | apt update |
| - | aptinstall | + | apt install |
| install -m 0755 -d / | install -m 0755 -d / | ||
| curl -fsSL https:// | curl -fsSL https:// | ||
| Zeile 12: | Zeile 15: | ||
| "deb [arch=$(dpkg --print-architecture) signed-by=/ | "deb [arch=$(dpkg --print-architecture) signed-by=/ | ||
| $(. / | $(. / | ||
| - | | + | tee / |
| apt update | apt update | ||
| + | apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
| + | </ | ||
| + | |||
| + | ====== Migrate seafile ====== | ||
| + | |||
| + | Quelle: https:// | ||
| + | |||
| + | <code bash> | ||
| + | ## Connect do DB server | ||
| + | mysql -u root -p | ||
| + | </ | ||
| + | |||
| + | <code sql> | ||
| + | ## Note, change the password according to the actual password you use | ||
| + | GRANT ALL PRIVILEGES ON *.* TO ' | ||
| + | |||
| + | ## Grant seafile user can connect the database from any IP address | ||
| + | GRANT ALL PRIVILEGES ON `seafile_ccnet_db`.* to ' | ||
| + | GRANT ALL PRIVILEGES ON `seafile_seafile_db`.* to ' | ||
| + | GRANT ALL PRIVILEGES ON `seafile_seahub_db`.* to ' | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | ## Restart MySQL | ||
| + | systemctl restart mariadb | ||
| + | </ | ||
| + | |||
| + | ====== Wake on LAN ====== | ||
| + | |||
| + | <code bash> | ||
| + | apt install ethtool | ||
| + | nano / | ||
| + | </ | ||
| + | < | ||
| + | # The primary network interface | ||
| + | allow-hotplug enp1s0 | ||
| + | iface enp1s0 inet dhcp | ||
| + | pre-down / | ||
| + | # This is an autoconfigured IPv6 interface | ||
| + | iface enp1s0 inet6 auto | ||
| </ | </ | ||
docker.1728329130.txt.gz · Zuletzt geändert: von xenadmin
