Skip to content

Instantly share code, notes, and snippets.

@thebsdbox
Created January 11, 2021 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebsdbox/4af82c2d9b66247243cc8a0b801f6ca7 to your computer and use it in GitHub Desktop.
Save thebsdbox/4af82c2d9b66247243cc8a0b801f6ca7 to your computer and use it in GitHub Desktop.
docker.yml
kernel:
image: linuxkit/kernel:5.4.39
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
init:
- linuxkit/init:a68f9fa0c1d9dbfc9c23663749a0b7ac510cbe1c
- linuxkit/runc:v0.8
- linuxkit/containerd:a4aa19c608556f7d786852557c36136255220c1f
- linuxkit/ca-certificates:v0.8
onboot:
- name: sysctl
image: linuxkit/sysctl:v0.8
- name: sysfs
image: linuxkit/sysfs:v0.8
- name: format
image: linuxkit/format:v0.8
- name: mount
image: linuxkit/mount:v0.8
command: ["/usr/bin/mountie", "/var/lib/docker"]
services:
- name: getty
image: linuxkit/getty:v0.8
env:
- INSECURE=true
- name: rngd
image: linuxkit/rngd:v0.8
- name: dhcpcd
image: linuxkit/dhcpcd:v0.8
- name: ntpd
image: linuxkit/openntpd:v0.8
- name: docker
image: docker:19.03.8-dind
capabilities:
- all
net: host
mounts:
- type: cgroup
options: ["rw","nosuid","noexec","nodev","relatime"]
binds:
- /etc/resolv.conf:/etc/resolv.conf
- /var/lib/docker:/var/lib/docker
- /lib/modules:/lib/modules
- /var/run:/var/run
- /etc/docker/daemon.json:/etc/docker/daemon.json
command: ["/usr/local/bin/docker-init", "/usr/local/bin/dockerd"]
files:
- path: var/lib/docker
directory: true
- path: etc/docker/daemon.json
contents: '{"debug": true}'
trust:
org:
- linuxkit
- library
@thebsdbox
Copy link
Author

ctr -n services.linuxkit t exec --exec-id t
est docker docker run busybox ls
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
d60bca25ef07: Pulling fs layer
d60bca25ef07: Verifying Checksum
d60bca25ef07: Download complete
d60bca25ef07: Pull complete
Digest: sha256:49dae530fd5fee674a6b0d3da89a380fc93746095e7eca0f1b70188a95fd5d71
Status: Downloaded newer image for busybox:latest[   35.326734] docker0: port 1(veth22ebfd5) entered blocking state
[   35.334082] docker0: port 1(veth22ebfd5) entered disabled state

[   35.345636] device veth22ebfd5 entered promiscuous mode
[   35.454399] IPVS: ftp: loaded support on port[0] = 21
[   35.514014] docker0: port 1(veth22ebfd5) entered disabled state
[   35.519755] device veth22ebfd5 left promiscuous mode
[   35.523867] docker0: port 1(veth22ebfd5) entered disabled state
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:432: running prestart hook 0 caused \\\"fork/exec /proc/6/exe: no such file or directory\\\"\"": unknown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment