mirror of
https://github.com/lukechilds/dockerpi.git
synced 2026-01-23 02:14:37 +00:00
Fix docker run example commands
This commit is contained in:
parent
5cd873577b
commit
965d4ea798
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
@ -41,7 +41,7 @@ If you only want to mount your own image, you can download a much slimmer VM onl
|
|||
[](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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue