Open AlexanderZhirov opened 2 years ago
Damn. Idk, do something hacky and restart the socket as part of your process.
This is plan "b" 😁
You might need full size pivot_root, instead of the limited busybox version. Just copy it into a package/bin dir from the chroot
On Wednesday, May 18, 2022, 05:10:12 AM PDT, Alexander Zhirov @.***> wrote:
ts_d85ed3156a39:~# docker run hello-world Unable to find image 'hello-world:latest' locally WARN[2022-05-18T04:12:30.563275464-07:00] Error getting v2 registry: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) INFO[2022-05-18T04:12:30.563410913-07:00] Attempting next endpoint for pull after error: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) ERRO[2022-05-18T04:12:30.565035178-07:00] Handler for POST /v1.41/images/create returned error: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
Solved this problem as follows:
mkdir -p /etc/pki/tls/certs cd /etc/pki/tls/certs wget https://curl.se/ca/cacert-2022-04-26.pem
After that, the image download command started working, but the startup error remained:
ts_d85ed3156a39:/etc/pki/tls/certs# docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 2db29710123e: Pull complete Digest: sha256:80f31da1ac7b312ba29d65080fddf797dd76acfb870e677f390d5acba9741b17 Status: Downloaded newer image for hello-world:latest time="2022-05-18T05:06:22.559549405-07:00" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf pid=9475 INFO[2022-05-18T05:06:23.094687549-07:00] shim disconnected id=f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf ERRO[2022-05-18T05:06:23.101121422-07:00] copy shim log error="read /proc/self/fd/14: file already closed" ERRO[2022-05-18T05:06:23.101738126-07:00] stream copy error: reading from a closed fifo ERRO[2022-05-18T05:06:23.102094768-07:00] stream copy error: reading from a closed fifo ERRO[2022-05-18T05:06:23.199006034-07:00] f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf cleanup: failed to delete container from containerd: no such container ERRO[2022-05-18T05:06:23.199157047-07:00] Handler for POST /v1.41/containers/f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf/start returned error: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:134: jailing process inside rootfs caused: pivot_root invalid argument: unknown docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:134: jailing process inside rootfs caused: pivot_root invalid argument: unknown. ERRO[0004] error waiting for container: context canceled
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
When docker starts, a few kernel modules are loaded, then some more when you do docker run. Preload them.
Sent from Yahoo Mail for iPhone
On Saturday, June 4, 2022, 4:49 AM, Alexander Zhirov @.***> wrote:
Maybe, put an execpre in the service that calls sleep, and see what happens.
I added a delay to docker.service and then to docker.socket - nothing has changed: ExecStartPre=/bin/sleep 10
could also be module loading, maybe docker trying to do all that on startup is causing an issue.
What do you mean?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
I want to make a
TS
build with onlyDocker
support based on thetiny
configuration. I leave thetiny
configuration untouched. I upload Docker 20.10.9 there. I do everything according to the instructions. LaunchingDocker
:At the output I get this log:
What recommendations will you give for launching Docker? As far as I understand, it is necessary to connect modules. Are they available in TS?
UPD
I made an assembly with all the modules. The result is like this:
In both cases, swears at the missing br_netfilter module.