User Tools

Site Tools


wiki:use_hetzner_storage_box_docker_volume

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:use_hetzner_storage_box_docker_volume [2023/06/19 10:58] – [Use Hetzner storage box as docker volume] update volume name antisawiki:use_hetzner_storage_box_docker_volume [2023/06/19 15:02] (current) – add info about host share mount antisa
Line 4: Line 4:
 First create the directory on the share e.g. //dock_vol// First create the directory on the share e.g. //dock_vol//
   mkdir /mnt/backup/dock_vol   mkdir /mnt/backup/dock_vol
 +
  
  
Line 16: Line 17:
  
 </code> </code>
 +
 +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 ''...file_mode=0777,dir_mode=0777...'', as per [[https://docs.docker.com/storage/volumes/#create-cifssamba-volumes|this example]].
 +</WRAP>
 +
 Ansible playbook task example: Ansible playbook task example:
  
Line 42: Line 51:
  
 </code> </code>
 +
 +
 ====== 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 10:58 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki