doc: Remove explicit hashes from documentation in ./pkg

People typically update hashes in YAML files with
'git grep ... | sed ...' this will change the README.md files
in the ./pkg directory and thus change the git tree hash.

Remove the use of explicit hashes from those files to avoid
the obvious chicken and egg problem.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-06-27 17:58:09 +01:00
parent 56d94318d9
commit 2fb65e8f1e
2 changed files with 2 additions and 16 deletions

View File

@ -10,7 +10,7 @@ If you want a console getty, add the following to your `moby.yml`:
```
services:
- name: getty
image: "linuxkit/getty:886d35fe30c47750e8cfbf2f73016e9d2cc6361a"
image: "linuxkit/getty:<hash>"
```
The above will launch a getty for each console defined in the cmdline, i.e. `/proc/cmdline`.
@ -70,17 +70,3 @@ In addition to the usual getty shell, it is possible that you have a LinuxKit bu
In that case, you can make `linuxkit/getty` an `init:` level container. This will lead to a `sh` running on the console.
**This is highly insecure and should not be used except to debug system startup where containerd will not start itself or services. In all other cases, use getty only via services.**
To use it this way:
```yml
kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0 console=tty0 page_poison=1"
init:
- linuxkit/init:1b8a7e394d2ec2f1fdb4d67645829d1b5bdca037
- linuxkit/runc:3a4e6cbf15470f62501b019b55e1caac5ee7689f
- linuxkit/containerd:b1766e4c4c09f63ac4925a6e4612852a93f7e73b
- linuxkit/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
- linuxkit/getty:8305d9a564bfbe38b7ea6d6f5bccd95ae59b03d2
```

View File

@ -8,7 +8,7 @@ Normally, unless you are running explicitly in a desktop version, LinuxKit image
```
onboot:
- name: swap
image: "linuxkit/swap:e36b5e794256c2a56c000035f73a4d46f7ffb3e6"
image: "linuxkit/swap:<hash>"
command: ["swap.sh","--path","/var/external/swap","--size","2G"]
```