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

Git Under The Hood

Playing with CSS flex Box

Tactrix Openport 2.0 With ECU FLASH ECU Chip Tunning

Constructor Type in Python

Python: are your context managers correctly written?

Set Alignment for Paragraphs in Word in Java

Newbie’s C++ competitive programming template.

Daily progress, June 11, 2021: Sleeping Guard

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

What is making your Docker image bloat?

Run Docker Inside Docker

Accessing Docker tag as an environment variable inside a Docker container project

Running Scalable Lightweight Session aware Python Flask application on Kubernetes

Deploying Flask App on Kubernetes