After some more googling I discovered that I had to set the file permissions of the docker-entrypoint.sh file on my filesystem not the container’s file system.
It seems the file permissions carry over to the container file system.
initially when I use the command for docker-compose up, when it tries to run the mongo image, it said, the port 27017 already in use
This I overcome, by running killing the process ID which was listening on the port 27017
Used the below command(Note I am running on Ubuntu Linux)
sudo kill sudo lsof -t -i:27017
After I solve the above problem, I got the error ‘Permission denied’ which I resolved using the solution you have provided here.
Anyone please send me this project zip file to my email or you can give me the link of repo. email id [email protected] i can’t able to download the project
Jay-R, I really appreciate you posting this! I can’t imagine how long it would have taken me to come up with this approach, thank you
Hi Mosh, can you explain why this change was necessary, and how it worked? (I’m guessing it could be illuminating to know how the original code was able to work on your machine but not ours).
Also, do these exercises exist somewhere on github? I could not find it among codewithmosh repos. I was hoping to find a discussion or fix for this in a repo.
thanks,
Bill
All new files and directories are created with a UID and GID of 0, unless the optional --chown flag specifies a given username, groupname, or UID/GID combination to request specific ownership of the copied content.