Docker bind volume permission deny problem and potential solution

docker run -d --restart=unless-stopped \
--name step-ca \
-v /ca/step:/home/step \
-p 9250:9000 \
-e "DOCKER_STEPCA_INIT_NAME=Smallstep" \
-e "DOCKER_STEPCA_INIT_DNS_NAMES=localhost,$(hostname -f)" \
smallstep/step-ca
docker run -it \
--name step-ca2 \
-v /ca/step:/home/step \
-p 9250:9000 \
smallstep/step-ca sh

Solution

--

--

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