Comments (7)
Another one for future reference: I had to run
# get path to mountpoint
docker volume inspect zwift-$USER
Copy the value associated with the key Mountpoint
. For me this was /var/lib/docker/volumes/zwift-myuser/_data
.
And then:
# change the owner of this mountpoint path to your current user
sudo chown -R myuser:myuser /var/lib/docker/volumes/zwift-myuser/_data
Followed by:
zwift
Hope that helps!
from zwift.
For future reference, zwift.sh should never be sudo'ed.
from zwift.
Thanks for pointing me to the solution. I also had to run "sudo usermod -aG docker $USER" then restart my pc. After that it worked like a charm! Thanks so much for getting Zwift to us linux users! :-D
from zwift.
The container uses $HOME/.zwift/$USER
for the home directory volume; can you check that on your PC? You're using sudo so it might be looking for /root/.zwift/root
?
Try running the zwift.sh
script with these two set
lines so we can see what it's trying to do:
#!/bin/bash
set -e # add this
set -x # add this
# The home directory to store zwift data
ZWIFT_HOME=${ZWIFT_HOME:-$HOME/.zwift/$USER}
(rest of the file)
from zwift.
Its trying to create the following. And when I look in the folders it seems as it has created everything.
eskimos@ESKIMOS-HTPC:~/bin$ sudo ./zwift.sh
- ZWIFT_HOME=/root/.zwift/root
- IMAGE=docker.io/netbrain/zwift
- VERSION=latest
- mkdir -p /root/.zwift/root
- docker pull docker.io/netbrain/zwift:latest
latest: Pulling from netbrain/zwift
Digest: sha256:bb0a748bce2bfa8a957f8dee5587783bd0368d7b9eced7fe213505e75f6c7eca
Status: Image is up to date for netbrain/zwift:latest
docker.io/netbrain/zwift:latest - [[ -f /proc/driver/nvidia/version ]]
- VGA_DEVICE_FLAG='--gpus all'
++ docker run -d --rm --privileged -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v /run/user/0/pulse:/run/user/1000/pulse -v /root/.zwift/root:/home/user/Zwift --gpus all docker.io/netbrain/zwift:latest - CONTAINER=a92d94335974774cb46a6c651b5e2c7734d27371680af81b4acc831b4cc28fc7
++ docker inspect '--format={{ .Config.Hostname }}' a92d94335974774cb46a6c651b5e2c7734d27371680af81b4acc831b4cc28fc7 - xhost +local:a92d94335974
non-network local connections being added to access control list
from zwift.
Found out that this was already handled in an closed issue. I will try set my folder with chmod 1000.
from zwift.
Worked like a charm now.
I had missed that docker should not be runned as sudo aswell as the script itself.
Thanks a lot for this :)
from zwift.
Related Issues (20)
- pulseaudio doesn't work after running zwift HOT 20
- Feature Request: Adding --net=host to allow for Ethernet/wifi trainers HOT 2
- Podman UID and GID HOT 3
- Update not working anymore in GH actions HOT 9
- Latest commit unable to find /bin/run_zwift.sh - How is podman supposed to get this entrypoint? HOT 10
- Zwift_push gh action is still failing HOT 3
- When using ZWIFT_UID/ZWIFT_GID in Docker does not work under wayland HOT 3
- update_zwift.sh could be further refactored into several files HOT 1
- chown step regarding ZWIFT_UID and ZWIFT_GID is run regardless of equality within container in docker. HOT 4
- Wayland Wine 9 does not work HOT 15
- The volume zwift-$USER is empty HOT 3
- example.gif showcasing zwift's ease of use is getting outdated.
- ./zwift.sh: line 180: xhost: command not found HOT 3
- [HELP (Not Launching/ Crashing)] - zwift.sh exits with warning on my system (never starts container). HOT 1
- Icon put in wrong place in Install Script
- wrong desktop environment detected when starting x11 with startx HOT 27
- Failed to log in HOT 19
- Unable to start ziwft with 2 monitors HOT 6
- See if its worth supporting podman pre 4.3 HOT 13
- Build Fails sometimes if next version is later than the web reported version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zwift.