-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First run of dockerized node:16.14 --version
results in an error
#34
Comments
Unfortunately I cannot reproduce this error on Windows or Ubuntu. Any hints as to what this might cause would be very welcome. Some things I'm curious about:
|
Let me try this again with the new version just released.
First run: ❯ dockerized/bin/dockerized node:16.14 --version
[+] Running 5/0
⠿ Volume "dockerized_pip_cache" Created 0.0s
⠿ Volume "dockerized_go_cache" Created 0.0s
⠿ Volume "dockerized_home" Created 0.0s
⠿ Volume "dockerized_node_modules" Created 0.0s
⠿ Volume "dockerized_python_modules" Created 0.0s
[+] Running 10/10
⠿ node Pulled 73.0s
⠿ b9f330b3a7e2 Pull complete 44.6s
⠿ 8a80651adb7e Pull complete 44.8s
⠿ a7b38ee622cb Pull complete 45.0s
⠿ fc937997baec Pull complete 50.8s
⠿ d799cbd56049 Pull complete 69.8s
⠿ ebce7ea98d19 Pull complete 69.9s
⠿ 49fceb34a8de Pull complete 70.9s
⠿ bbde1338a04a Pull complete 71.0s
⠿ fe3a6810ee35 Pull complete 71.0s
Error response from daemon: error while creating mount source path '/Users/austin/.dockerized/apps/node': chown /Users/austin/.dockerized/apps/node: permission denied
❯ find ~/.dockerized -ls
36790113 0 drwxr-xr-x 3 austin staff 96 22 Apr 13:19 /Users/austin/.dockerized
36790114 0 drwxr-xr-x 3 austin staff 96 22 Apr 13:19 /Users/austin/.dockerized/apps
36790115 0 drwxr-xr-x 2 austin staff 64 22 Apr 13:19 /Users/austin/.dockerized/apps/node Second run: ❯ dockerized/bin/dockerized node:16.14 --version
v16.14.2
❯ find ~/.dockerized -ls
36790113 0 drwxr-xr-x 3 austin staff 96 22 Apr 13:19 /Users/austin/.dockerized
36790114 0 drwxr-xr-x 3 austin staff 96 22 Apr 13:19 /Users/austin/.dockerized/apps
36790115 0 drwxr-xr-x 2 austin staff 64 22 Apr 13:19 /Users/austin/.dockerized/apps/node I have several other applications that I run through docker images (mostly those I have made myself) and have no problems mounting local folders. On the other hand, they aren’t trying to create the folder structures at this point. Trying a variant of your suggestion: ❯ docker run --rm -it -v "$HOME:/work" golang sh -c "mkdir -p /work/.dockerized/foo && find /work/.dockerized"
/work/.dockerized
/work/.dockerized/foo |
Test variants I am now trying: > rm -rf ~/.dockerized
> dockerized node:16.14 --version
Error response from daemon: error while creating mount source path '/Users/austin/.dockerized/apps/node': mkdir /Users/austin/.dockerized/apps: no such file or directory
> dockerized node:16.14 --version
Error response from daemon: error while creating mount source path '/Users/austin/.dockerized/apps/node': chown /Users/austin/.dockerized/apps/node: permission denied
❯ dockerized/bin/dockerized node:16.14 --version
v16.14.2
❯ dockerized/bin/dockerized python:3 --version
Error response from daemon: error while creating mount source path '/Users/austin/.dockerized/apps/python': chown /Users/austin/.dockerized/apps/python: permission denied
❯ dockerized/bin/dockerized python:3 --version
Python 3.10.4 After this, I did the following: ❯ rm -rf ~/.dockerized
❯ mkdir -p ~/.dockerized/apps
❯ dockerized/bin/dockerized node:16.14 --version
Error response from daemon: error while creating mount source path '/Users/austin/.dockerized/apps/node': chown /Users/austin/.dockerized/apps/node: permission denied
❯ dockerized/bin/dockerized node:16.14 --version
v16.14.2
❯ dockerized/bin/dockerized python:3 --version
Error response from daemon: error while creating mount source path '/Users/austin/.dockerized/apps/python': chown /Users/austin/.dockerized/apps/python: permission denied
❯ dockerized/bin/dockerized python:3 --version
Python 3.10.4 Is this related to the ownership model we identified during the build process? |
Thanks for running these tests. You're probably right that it's related to the path-creation, done by docker. I have a few more questions if you don't mind.
Really wondering if this might be a docker issue.
|
I’m not using Docker Desktop, but Colima. I ran into some similar issues off macOS recently where I needed to pass I can’t quite figure out why these are misbehaving on macOS. |
I see. Well, Colima or Docker, this should work. I read that Colima still relies on the docker-cli, so could you try the following command? The point is testing if docker can create the nested paths on the host system without running into chmod issues.
If this command fails with the same error, we know it's a docker issue, and we need to work around it (for example by pre-writing the directories). If it's not failing then there are the following few possibilities:
|
❯ docker run --rm -it -v "$HOME/.dockerized/tmp/a/b:/work" golang find /work -ls
docker: Error response from daemon: error while creating mount source path '/Users/austin/.dockerized/tmp/a/b': chown /Users/austin/.dockerized/tmp/a/b: permission denied. |
This might be a |
Second run outputs the expected version (
v16.14.2
).Trying with
dockerized python:3 --version
results in a similar error on the first run:The text was updated successfully, but these errors were encountered: