Skip to content
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

Boot2Docker: VOLUME prevents chown to have effect #1804

Closed
ChristianKniep opened this issue Oct 6, 2015 · 4 comments
Closed

Boot2Docker: VOLUME prevents chown to have effect #1804

ChristianKniep opened this issue Oct 6, 2015 · 4 comments

Comments

@ChristianKniep
Copy link
Contributor

Hey there,
I like to tip my toe into ipfs, therefore I tried to create my own docker image - failed - and came to your very own dockerfile. :)
If I build and run the image, I get:

$ docker build --rm -t ipfs/go-ipfs .
$ docker run -ti -p 8080:8080 -p 4001:4001 -p 5001:5001 ipfs/go-ipfs:latest
ERR: /data/ipfs is not writable for user 'ipfs' (UID 1000)

Which is caused by the fact that VOLUME /data/ipfs is done under the user root. Which creates a directory on the docker host, which is mounted into the container using the give user.
By putting the line VOLUME underneath the USER ipfs line, it will work as expected. This might take effect due to newer docker version (I use 1.8).

@ChristianKniep
Copy link
Contributor Author

#1805

@ChristianKniep
Copy link
Contributor Author

Sorry, I tried to fix the signed-off check.. it's #1806 now...

@jbenet
Copy link
Member

jbenet commented Oct 6, 2015

cc @Luzifer PTAL


Sent from Mailbox

On Tue, Oct 6, 2015 at 1:33 PM, Christian Kniep notifications@github.com
wrote:

Sorry, I tried to fix the signed-off check.. it's #1806 now...

Reply to this email directly or view it on GitHub:
#1804 (comment)

@chriscool
Copy link
Contributor

Fixed by #2064 (Docker image volume fix and Sharness tests).
Thanks @ChristianKniep !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants