question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Config path of docker container can't be mapped

See original GitHub issue

If I want to run verdaccio on my unraid server, I can’t map the folders /config/ to a host folder. If I want to map them, the container won’t start. There are no logs.

The same occurs when I want to start the start the container on my Windows 10 system with WSL2 by following command:

docker run -it --rm --name verdaccio -p 4873:4873 -v C:\temp\verdaccio\conf:/verdaccio/conf -v C:\temp\verdaccio\storage:/verdaccio/storage -v C:\temp\verdaccio\plugins:/verdaccio/plugins  verdaccio/verdaccio

If I run the container without the port mapping, it starts flawlessly by this command:

docker run -it --rm --name verdaccio -p 4873:4873  verdaccio/verdaccio

The container should start with mapped /config/ folder. Unfortunatly there is currently nothing more I could share with you.

I guess there is something strange with the permissions itself. IMHO there are missing permission mappings for the /config at this line:

https://github.com/verdaccio/verdaccio/blob/b02dab1c2f8fc9c2e7cafe6510535ff491a7b1aa/Dockerfile#L44

Unfortunatly I’m not that docker expert to debug this.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:35 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
Disane87commented, May 15, 2021

@juanpicado You can consider this a closed. Thank you for your patience and assistance 😃

2reactions
Disane87commented, May 15, 2021

Just created a PR. It’s my first contribution ever, so don’t be so hard with me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker container can't access mapped directory from host
I'm running grafana and influxdb containers in a CentOS environment, but when I start the containers, both says that can't create the files...
Read more >
Store configuration data using Docker Configs
In Windows containers, configs are all mounted into C:\ProgramData\Docker\configs and symbolic links are created to the desired location, which defaults to C:\ ...
Read more >
Bind mounts - Docker Documentation
When you use a bind mount, a file or directory on the host machine is mounted into a container. The file or directory...
Read more >
Explore networking features - Docker Documentation
Docker Desktop can't route traffic to Linux containers. However if you're a Windows user, you can ping the Windows containers.
Read more >
Container networking - Docker Documentation
-p 8080:80, Map TCP port 80 in the container to port 8080 on the Docker host. ... If the container cannot reach any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found