Skip to content

Commit

Permalink
Mount .ssh volume read-only. Example of mounting system folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Jun 2, 2016
1 parent c4ed739 commit 287d219
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ On your remote server (this will pull the docker image the first time you issue
```
docker run -d \
-p 7777:7777 -p 60000-60020:60000-60020/udp \
-v ~/.ssh/authorized_keys:/root/.ssh/authorized_keys \
-v ${HOME}/.ssh:/root/.ssh:ro \
tombh/texttop
```
Note that this assumes you already have SSH setup on your server and that you have your public key there. Password
Expand Down Expand Up @@ -78,7 +78,14 @@ export DISPLAY=:0
xterm &
```
Just remember that you will lose any system changes once you restart the docker container. I'm thinking about ways to
save state. You may experiment with mounting certain system directories.
save state. You may experiment with mounting certain system directories. Eg;
```
docker run -d \
-p 7777:7777 -p 60000-60020:60000-60020/udp \
-v ${HOME}/.ssh:/root/.ssh:ro \
-v ${HOME}/.texttop/var:/var \
tombh/texttop
```

##Known Issues
The Docker Hub version is built against Intel CPU architectures, this causes hiptext to fail on AMD chips. In which
Expand Down

0 comments on commit 287d219

Please sign in to comment.