docker: Add troubleshooting section

This commit is contained in:
Andre Richter 2017-09-29 13:49:50 +02:00
parent 41d5e242d9
commit 81559af69f
No known key found for this signature in database
GPG key ID: 2116C1AB102F615E

View file

@ -74,3 +74,12 @@ the container image manually.
```shell
docker build -t redoxos/redox docker/
```
### Troubleshooting / updating
Sometimes, builds may fail because the nightly toolchain of rust inside the container got out of sync with dependencies of redox, or there are issues with cargo. In this case, it might help to update your current container image and delete the rust and cargo caches. This way, you can start over from a clean state and rule out your local setup as the origin of errors.
```shell
docker pull redoxos/redox
docker volume rm redox-"$(id -u)-$(id -g)"-cargo \
redox-"$(id -u)-$(id -g)"-rustup
```