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

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

I am going to become a better developer

A POP approach for table views using MVVM.

Automated Marketing with Ruby on Rails

Programming For Quantum Computers: Which Languages Should You Learn?

Learn Unity Editor Scripting: Menus (Part 4)

Installing OpenCV 4 on MacOS

Arduino Day Special: Top 5 Arduino 3D Printed Projects you can do!

Secure Serverless Azure Functions AppSetting Using Key Vault

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
Stephen Cow Chau

Stephen Cow Chau

More from Medium

Docker transfer.sh with SSL and Apache Proxy

Collect http status Nginx — Prometheus (Docker)

Docker Size Investigation

Building And Deploying A Sample Application On A Kubernetes Cluster