4. Docker Mount

  1. It creates volume automatically if it is not present
  2. Create volume using command -
docker run — mount src=”$(pwd)”,target=$HOME/app,type=volume webapp:1.0
  1. It does not create a directory if not present but will send an error
  2. Add mount using the command
docker run — mount src=”$(pwd)”,target=$HOME/app,type=bind webapp:1.0

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store