Skip to content

Fix busybox version to 1.28 instead of pulling from latest #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions exercise3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ There are other type of networks beside Bridge
The data in the containers are only removed when the containers are removed not when its stopped.

```
docker run -it --name='test-box' busybox sh
docker run -it --name='test-box' busybox:1.28 sh
touch test.txt

docker start test-box
Expand Down Expand Up @@ -96,26 +96,26 @@ docker volume inspect test-vol
```

```
docker run -it -v test-vol:/app --rm busybox sh
docker run -it -v test-vol:/app --rm busybox:1.28 sh
touch /app/test.txt
```

```
docker run -it -v test-vol:/app --rm busybox ls /app
docker run -it -v test-vol:/app --rm busybox:1.28 ls /app
```

Using Bind Mounts

```
docker run -it -v `pwd`:/app busybox sh
docker run -it -v `pwd`:/app busybox:1.28 sh
```

Take note that if there is existing files in the container, it will be hidden away. Note that the sbin is hidden away.

This can be useful when you want to mount codes into the a existing image without rebuilding it.

```
docker run -it -v `pwd`:/usr busybox sh
docker run -it -v `pwd`:/usr busybox:1.28 sh
```


Expand Down