wiki:use_hetzner_storage_box_docker_volume
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:use_hetzner_storage_box_docker_volume [2023/06/19 08:58] – [Use Hetzner storage box as docker volume] update volume name antisa | wiki:use_hetzner_storage_box_docker_volume [2023/06/19 13:02] (current) – add info about host share mount antisa | ||
---|---|---|---|
Line 4: | Line 4: | ||
First create the directory on the share e.g. // | First create the directory on the share e.g. // | ||
mkdir / | mkdir / | ||
+ | |||
Line 16: | Line 17: | ||
</ | </ | ||
+ | |||
+ | This is enough, you don't need to mount the share on host as well. | ||
+ | |||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | If the app running in container is running and trying to write as a different user than root, you will need to adjust the permissions in above command that creates volumes to '' | ||
+ | </ | ||
+ | |||
Ansible playbook task example: | Ansible playbook task example: | ||
Line 42: | Line 51: | ||
</ | </ | ||
+ | |||
+ | |||
====== Tested on ====== | ====== Tested on ====== | ||
* Docker 23.0.1 | * Docker 23.0.1 |
wiki/use_hetzner_storage_box_docker_volume.1687165128.txt.gz · Last modified: 2023/06/19 08:58 by antisa