mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
docker: small doc improvements
This commit is contained in:
@@ -698,7 +698,7 @@ For example, to do a <<qemu-buildroot-setup>> inside Docker, run:
|
|||||||
sudo apt-get install docker
|
sudo apt-get install docker
|
||||||
./run-docker create && \
|
./run-docker create && \
|
||||||
./run-docker sh -- ./build --download-dependencies qemu-buildroot
|
./run-docker sh -- ./build --download-dependencies qemu-buildroot
|
||||||
./run-docker sh
|
./run-docker
|
||||||
....
|
....
|
||||||
|
|
||||||
You are now left inside a shell in the Docker! From there, just run as usual:
|
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:
|
|||||||
....
|
....
|
||||||
docker images
|
docker images
|
||||||
....
|
....
|
||||||
* `./run-docker sh`: open a shell on the container.
|
* `./run-docker`: open a shell on the container.
|
||||||
+
|
+
|
||||||
If it has not been started previously, start it. This can also be done explicitly with:
|
If it has not been started previously, start it. This can also be done explicitly with:
|
||||||
+
|
+
|
||||||
@@ -753,7 +753,7 @@ To actually delete the Docker build, run on host:
|
|||||||
To use <<gdb>> from inside Docker, you need a second shell inside the container. You can either do that from another shell with:
|
To use <<gdb>> from inside Docker, you need a second shell inside the container. You can either do that from another shell with:
|
||||||
|
|
||||||
....
|
....
|
||||||
./run-docker sh
|
./run-docker
|
||||||
....
|
....
|
||||||
|
|
||||||
or even better, by starting a <<tmux>> session inside the container. We install `tmux` by default in the container.
|
or even better, by starting a <<tmux>> session inside the container. We install `tmux` by default in the container.
|
||||||
|
|||||||
11
build-docker
11
build-docker
@@ -38,13 +38,12 @@ See also: https://github.com/cirosantilli/linux-kernel-module-cheatTODO#ubuntu-g
|
|||||||
'docker',
|
'docker',
|
||||||
'create',
|
'create',
|
||||||
'--name', container_name,
|
'--name', container_name,
|
||||||
'--net',
|
'--network', 'host',
|
||||||
'host',
|
'--interactive',
|
||||||
'-i',
|
|
||||||
'--privileged',
|
'--privileged',
|
||||||
'-t',
|
'--tty',
|
||||||
'-w', target_dir,
|
'--workdir', target_dir,
|
||||||
'-v', '{}:{}'.format(kwargs['root_dir'], target_dir),
|
'--volume', '{}:{}'.format(kwargs['root_dir'], target_dir),
|
||||||
'ubuntu:20.04',
|
'ubuntu:20.04',
|
||||||
'bash',
|
'bash',
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user