Skip to content

Commit

Permalink
Fix docker run example commands
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Dec 16, 2019
1 parent 5cd8735 commit 965d4ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ docker run -it lukechilds/dockerpi
By default all filesystem changes will lost on shutdown. You can persist filesystem changes between reboots by mounting the `/sdcard` volume on your host:

```
docker -v $HOME/.dockerpi:/sdcard run -it lukechilds/dockerpi
docker run -it -v $HOME/.dockerpi:/sdcard lukechilds/dockerpi
```

If you have a specific image you want to mount you can mount it at `/sdcard/filesystem.img`:

```
docker -v /2019-09-26-raspbian-buster-lite.img:/sdcard/filesystem.img run -it lukechilds/dockerpi
docker run -it -v /2019-09-26-raspbian-buster-lite.img:/sdcard/filesystem.img lukechilds/dockerpi
```

If you only want to mount your own image, you can download a much slimmer VM only Docker container that doesn't contain the Raspbian filesystem image:
Expand All @@ -41,7 +41,7 @@ If you only want to mount your own image, you can download a much slimmer VM onl
[![Docker Image Size](https://badgen.net/docker/size/lukechilds/dockerpi/vm/amd64?icon=docker&label=lukechilds/dockerpi:vm)](https://hub.docker.com/r/lukechilds/dockerpi/tags?name=vm)

```
docker -v /2019-09-26-raspbian-buster-lite.img:/sdcard/filesystem.img run -it lukechilds/dockerpi:vm
docker run -it -v /2019-09-26-raspbian-buster-lite.img:/sdcard/filesystem.img lukechilds/dockerpi:vm
```

## Build
Expand Down

0 comments on commit 965d4ea

Please sign in to comment.