Skip to content

Commit 43062f1

Browse files
tomvictorSergioGasquez
authored andcommitted
update docs on starting docker container
1 parent 0d97b7f commit 43062f1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode
2+
.idea
23
target
34
Cargo.lock
45
cfg.toml

book/src/02_2_software.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,20 @@ to compile the binaries for the Espressif target. Flashing binaries from contain
8989
docker image build --tag rust-std-training --file .devcontainer/Dockerfile .
9090
```
9191
Building the image takes a while depending on the OS & hardware (20-30 minutes).
92-
- Donwload it from [Dockerhub](https://hub.docker.com/r/espressif/rust-std-training):
92+
- Download it from [Dockerhub](https://hub.docker.com/r/espressif/rust-std-training):
9393
```console
9494
docker pull espressif/rust-std-training
9595
```
9696
✅ Start the new Docker container:
97-
```console
98-
docker run --mount type=bind,source="$(pwd)",target=/workspace,consistency=cached -it rust-std-training /bin/bash
99-
```
97+
98+
- For local Docker image:
99+
```console
100+
docker run --mount type=bind,source="$(pwd)",target=/workspace,consistency=cached -it rust-std-training /bin/bash
101+
```
102+
- From the Docker Hub:
103+
```console
104+
docker run --mount type=bind,source="$(pwd)",target=/workspace,consistency=cached -it espressif/rust-std-training:latest /bin/bash
105+
```
100106

101107
This starts an interactive shell in the Docker container. It also mounts the local repository to a folder
102108
named `/workspace` inside the container. Changes to the project on the host system are reflected inside the container & vice versa.

0 commit comments

Comments
 (0)