Skip to content

The working directory 'C:/DatabaseSeed' is invalid, it needs to be an absolute path. #173

Answered by pkosiec
modmoto asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @modmoto,
The error Error response from daemon: ... comes from Docker, not from Mongo Seeding container. I think you specify the destination path incorrectly. Destination path is the path in the Linux container you run (Mongo Seeding is a container based on Linux Alpine, so it has linux filesystem on it).

Please try to use something like:

docker run --rm --network=host -v C:/DatabaseSeed:/data -w /data pkosiec/mongo-seeding

Unfortunately, I don't have a Windows machine to try it by myself. Please let me know if that works.

Cheers!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@modmoto
Comment options

@pkosiec
Comment options

@modmoto
Comment options

Answer selected by modmoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/docker-image Refers to Mongo Seeding Docker Image
2 participants
Converted from issue

This discussion was converted from issue #172 on May 31, 2021 20:14.