Skip to content

Commit 45513bd

Browse files
committed
docker: small doc improvements
1 parent d769513 commit 45513bd

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ For example, to do a <<qemu-buildroot-setup>> inside Docker, run:
698698
sudo apt-get install docker
699699
./run-docker create && \
700700
./run-docker sh -- ./build --download-dependencies qemu-buildroot
701-
./run-docker sh
701+
./run-docker
702702
....
703703

704704
You are now left inside a shell in the Docker! From there, just run as usual:
@@ -726,7 +726,7 @@ and the image shows under:
726726
....
727727
docker images
728728
....
729-
* `./run-docker sh`: open a shell on the container.
729+
* `./run-docker`: open a shell on the container.
730730
+
731731
If it has not been started previously, start it. This can also be done explicitly with:
732732
+
@@ -753,7 +753,7 @@ To actually delete the Docker build, run on host:
753753
To use <<gdb>> from inside Docker, you need a second shell inside the container. You can either do that from another shell with:
754754

755755
....
756-
./run-docker sh
756+
./run-docker
757757
....
758758

759759
or even better, by starting a <<tmux>> session inside the container. We install `tmux` by default in the container.

build-docker

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ See also: https://github.com/cirosantilli/linux-kernel-module-cheatTODO#ubuntu-g
3838
'docker',
3939
'create',
4040
'--name', container_name,
41-
'--net',
42-
'host',
43-
'-i',
41+
'--network', 'host',
42+
'--interactive',
4443
'--privileged',
45-
'-t',
46-
'-w', target_dir,
47-
'-v', '{}:{}'.format(kwargs['root_dir'], target_dir),
44+
'--tty',
45+
'--workdir', target_dir,
46+
'--volume', '{}:{}'.format(kwargs['root_dir'], target_dir),
4847
'ubuntu:20.04',
4948
'bash',
5049
])

0 commit comments

Comments
 (0)