Skip to content

Instantly share code, notes, and snippets.

@giansalex
Created April 14, 2020 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save giansalex/9897818f532aca649b288faef0d3aef8 to your computer and use it in GitHub Desktop.
Save giansalex/9897818f532aca649b288faef0d3aef8 to your computer and use it in GitHub Desktop.
Docker volume in specify path (Linux)

Create docker volume

Create new docker volume in specific path.

Create Directory to save volume data

mkdir -p /mnt/xxxx/volume/data

Create volume with above path

 docker volume create newvolumen_data -o type=none -o device=/mnt/xxxx/volume/data -o o=bind

Check volume

 docker volume inspect newvolumen_data
@thiagovilla
Copy link

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment