Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
content:serverbasics:docker [2024/04/20 14:31] – [First Docker App: Portainer] Daniel | content:serverbasics:docker [2024/05/18 11:11] (aktuell) – [Update] Daniel | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Docker (rootless) ====== | + | ====== Docker (rootless) |
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 on will give you hints how to setup Docker in a good way. | ||
Zeile 277: | Zeile 277: | ||
'' | '' | ||
- | **by default, the path and the file is not existent, | + | **by default, the path and the file is not existent, |
- | For example, enable | + | For example, enable |
< | < | ||
Zeile 285: | Zeile 285: | ||
" | " | ||
" | " | ||
+ | " | ||
+ | " | ||
" | " | ||
" | " | ||
Zeile 292: | Zeile 294: | ||
</ | </ | ||
+ | |||
+ | You need to adjust cidr to match your network, check first 4 blocks of '' | ||
Notice: Don't use '' | Notice: Don't use '' | ||
Zeile 297: | Zeile 301: | ||
===== Install docker compose ===== | ===== Install docker compose ===== | ||
- | The command '' | + | The command '' |
Installing it the manual way: | Installing it the manual way: | ||
- | Edit the File '' | + | Edit the File '' |
< | < | ||
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, | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | #Upgrade docker rootless and plugin | ||
+ | systemctl --user stop docker | ||
+ | rm -f ~/ | ||
+ | curl -fsSL https:// | ||
+ | #need to give the new binary permissions to acces privileged network ports (beneath 1024) | ||
+ | sudo setcap ' | ||
+ | |||
+ | # If you installed docker compose, check the newest version first at https:// | ||
+ | curl -SL https:// | ||
+ | |||
+ | </ | ||
Zeile 331: | Zeile 353: | ||
Now, that you have compose, you can use it to setup your services with YAML- Files. Each service should have a directory for its own. | Now, that you have compose, you can use it to setup your services with YAML- Files. Each service should have a directory for its own. | ||
- | Make a directory with '' | + | Make a directory with '' |
===== First Docker App: Portainer ===== | ===== First Docker App: Portainer ===== | ||
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. | ||
- | |||
< | < | ||
+ | |||
obel1x@server: | obel1x@server: | ||
Password: | Password: | ||
Zeile 395: | Zeile 418: | ||
</ | </ | ||
- | Now you can go to http:// | + | Now you can go to [[http:// |
{{ .: | {{ .: |