You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[warn] /data is not owned by this user (abc, 1000) but by (911). Perhaps you are running Tor as the wrong user?
[warn] Failed to parse/validate config: Couldn't create private data directory "/data"
I was in my home directory and made sure the /tor directory did not exist.
Running the docker run as sudo or not didn't change the behavior.
dub@XXX:~$ docker exec tor-relay2 ls /data -lsa
total 8
4 drwxr-xr-x 2 911 1001 4096 May 16 21:54 .
4 drwxr-xr-x 1 root root 4096 May 16 21:55 ..
dub@XXX:~$ pwd
/home/dub
dub@XXX:~$ ls /home/dub/tor -lsa
total 12
4 drwxr-xr-x 3 root root 4096 May 16 21:54 .
4 drwxr-xr-x 32 dub dub 4096 May 16 21:54 ..
4 drwxr-xr-x 2 911 1001 4096 May 16 21:54 data
dub@XXX:~$ id -u
1000
dub@XXX:~$ id -g
1000
In the end I simply created a new volume and mounted it in the docker run command:
--mount type=volume,source=tor-relay,destination=/data
and removed:
-e PUID=$(id -u)
-e PGID=$(id -g) \
Please bare with me, I'm new to docker and Github.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone,
Using:
wasn't working for me.
I was in my home directory and made sure the /tor directory did not exist.
Running the docker run as sudo or not didn't change the behavior.
In the end I simply created a new volume and mounted it in the docker run command:
--mount type=volume,source=tor-relay,destination=/data
and removed:
-e PUID=$(id -u)
-e PGID=$(id -g) \
Please bare with me, I'm new to docker and Github.
Beta Was this translation helpful? Give feedback.
All reactions