Skip to content

Instantly share code, notes, and snippets.

@nconder
Created July 18, 2021 01:48
Show Gist options
  • Save nconder/f1b055a3d35c7e542c4ba2e732d9775e to your computer and use it in GitHub Desktop.
Save nconder/f1b055a3d35c7e542c4ba2e732d9775e to your computer and use it in GitHub Desktop.
create_docker_volume_from_cifs.txt
# Create a docker volume from cifs/smb share for a containers to use.
# Run the below in the docker server shell after you replace server, user, password, and name.
docker volume create \
--driver local \
--opt type=cifs \
--opt device=//192.168.1.100/SHANENAME \
--opt o=addr=192.168.1.100,username=USER,password='PASSWORD',file_mode=0777,dir_mode=0777 \
--name DOCKER_VOL_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment