-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Docker Run: ERR: /data/ipfs is not writable for user 'ipfs' (UID 1000) #2245
Comments
Because you specified To fix this simply run It might be useful to have the container startup script set those permissions and to be able to specify which UID/GID to use (sameersbn's GitLab image supports that via env flags) so that you can prevent normal users from reading your IPNS keys or changing your data. |
Thank you for your reply, @Patagonicus. I did as you advised ... $ docker logs v-ipfs
====================8<-----------------------------------------
Gateway (readonly) server listening on /ip4/0.0.0.0/tcp/8080
Daemon is ready Thanks!! |
Looks like this has been resolved, thanks @Patagonicus! |
Reopening because this is still an issue in case you start the container without mounting a volume (i.e. with an ephemeral repo). Fix incoming. |
Okay fixed in #2256 |
I suggest re-opening this and fixing it. mysql's Dockerfile solves this by doing a |
This has been fixed in master: #6040. |
seems to be an issue still with the latest docker-compose.yml file in the ipfs-cluster quickstart guide |
I'm not a linux guru and I'm new to docker. I did try searching this before posting here, but this is driving me nuts. I should note that centurylink/watchtower seems to be running fine on my system.
Getting an error using docker and cannot attach into the container because it stops immediately.
Steps Taken
This is a summary of what I'm doing.
Docker Run
Docker Logs
Docker PS
$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b8171bbe7559 jbenet/go-ipfs:latest "/usr/local/bin/start" 7 seconds ago Exited (1) 6 seconds ago v-ipfs
Testing
I thought maybe it was a permissions issue with my mount at
/mnt/ipfs
, but the/mnt/ipfs/staging
and/mnt/ipfs/data
folders were successfully created. I did try changing the the targets to/tmp
as shown:The
/tmp/ipfs/staging
and/tmp/ipfs/data
folders did not exist before executingdocker run
and did after. However, I got the same error in the log:I assume that's the UID within the docker container because the
ipfs
user on the host is 1002:$ grep 'ipfs' /etc/passwd ipfs:x:1002:1002::/home/ipfs:/bin/bash
The text was updated successfully, but these errors were encountered: