You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At Buildroot 7e85734709e0da78cc399c1b85655528e2d5f209 requires:
42
+
43
+
sed -i -e 's/BR2_TARGET_GENERIC_GETTY_PORT="tty1"/BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"/g' .config
44
+
45
+
TODO: but why does it work on: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/b8f190cc24b4f7474894b68a5510a8f3d767843d even without changing it? Buildroot version difference?
46
+
35
47
## ARM
36
48
37
49
Full QEMU command documented under `board/qemu/*/readme.txt`.
Copy file name to clipboardExpand all lines: docker/README.md
+53-20
Original file line number
Diff line number
Diff line change
@@ -21,33 +21,46 @@ Docker was developed by a company called dotCloud Inc, and open sourced. dotClou
21
21
22
22
## Getting started
23
23
24
-
List all commands:
24
+
Download Ubuntu image, and create a new container from it named `ub16`:
25
25
26
-
sudo docker help
26
+
sudo docker run --name ub16 -it ubuntu:16.04 bash
27
27
28
-
Get help on one command:
28
+
Write a file there:
29
29
30
-
sudo docker help build
30
+
date >f
31
31
32
-
Good info on the manpages:
32
+
Ctrl + D kills the VM, as can be seen by the empty:
33
33
34
-
man docker
35
-
man docker-run
34
+
sudo docker ps
36
35
37
-
Status of the currently running VMs:
36
+
which lists all containers. To get turn it back on:
38
37
39
-
sudo docker info
38
+
sudo docker start -ai ub16
39
+
40
+
To detach without turning it off enter `Ctrl-P Ctrl-Q`: <https://stackoverflow.com/questions/19688314/how-do-you-attach-and-detach-from-dockers-process>
41
+
42
+
To open a new shell in a running container <https://stackoverflow.com/questions/39794509/how-to-open-multiple-terminals-in-docker> run:
43
+
44
+
sudo docker exec -it bash
45
+
46
+
And check that `f` is present:
47
+
48
+
cat f
49
+
50
+
## Help
51
+
52
+
List all commands:
40
53
41
-
Run a hello world and exit:
54
+
sudo docker help
42
55
43
-
docker run hello-world
56
+
Get help on one command:
44
57
45
-
Run Ubuntu shell: TODO which is the default version:
58
+
sudo docker help build
46
59
47
-
sudo docker run -it ubuntu bash
48
-
sudo docker run -it ubuntu:16.04 bash
60
+
Good info on the manpages:
49
61
50
-
Ctrl + D exits shell, `sudo docker info` says it is still running, how to exit?
62
+
man docker
63
+
man docker-run
51
64
52
65
## Images
53
66
@@ -178,13 +191,33 @@ Same goes for a bare `CMD nginx`, since by default Nginx turns itself into a bac
178
191
179
192
Share directory between guest and host:
180
193
181
-
sudo docker run -v /tmp ubuntu date > /tmp/docker
182
-
cat /tmp/docker
194
+
sudo docker run -v path/in/host:/full/path/in/guest ubuntu date > /full/path/in/guest/mydate
195
+
cat path/in/host/mydate
196
+
197
+
It gets updated immediately.
198
+
199
+
Can only take absolute paths on guest. Efficient for large files, unlike some VM schemes. The paths get created if they don't exist.
200
+
201
+
Only works for new containers: <https://stackoverflow.com/questions/28302178/how-can-i-add-a-volume-to-an-existing-docker-container>
0 commit comments