Created
July 18, 2021 01:48
-
-
Save nconder/f1b055a3d35c7e542c4ba2e732d9775e to your computer and use it in GitHub Desktop.
create_docker_volume_from_cifs.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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