docker: Add interactive sessions

Provide a nice interface when using the container interactively.
This commit is contained in:
Andre Richter 2017-09-02 22:17:17 +02:00
parent 6e3c76ea23
commit 114de48b20
No known key found for this signature in database
GPG key ID: 2116C1AB102F615E
4 changed files with 19 additions and 3 deletions

View file

@ -52,6 +52,17 @@ docker run --cap-add MKNOD --cap-add SYS_ADMIN --device /dev/fuse \
-v redox-"$(id -u)-$(id -g)"-rustup:/usr/local/rustup \
-v "$(pwd):$(pwd)" -w "$(pwd)" --rm redox make fetch all
```
### Run the container interactively
```shell
docker run --cap-add MKNOD --cap-add SYS_ADMIN --device /dev/fuse \
-e LOCAL_UID="$(id -u)" -e LOCAL_GID="$(id -g)" \
-v redox-"$(id -u)-$(id -g)"-cargo:/usr/local/cargo \
-v redox-"$(id -u)-$(id -g)"-rustup:/usr/local/rustup \
-v "$(pwd):$(pwd)" -w "$(pwd)" --rm -it redox
```
#### Demo
![Image of Usage](interactive_demo.gif)
### Clear the named volume containing the cargo cache
```shell