-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
area: networkingIssue related to networkingIssue related to networkingtype: bugSomething isn't workingSomething isn't working
Description
Description
Building the following Dockerfile inside the docker-in-gvisor
container hangs on the swiftly init line. I tried to strace, but wasn't sure what too look for inside .boot.txt
. It works with docker-in-docker
(outer docker with runc runtime).
I did find
grep "errno=4" runsc.log.20250722-192900.418184.boot.txt
I0722 19:29:01.676393 1 strace.go:614] [ 23: 40] containerd X epoll_pwait(0x4 anon_inode:[eventpoll], 0x7eaebd7f95e4 {}, 0x80, 0xf4, null, 0x0) = 0 (0x0) errno=4 (request was interrupted) (4.714µs)
I0722 19:29:11.425557 1 strace.go:614] [ 92: 94] docker-buildx X epoll_pwait(0x4 anon_inode:[eventpoll], 0xc00009b764 {}, 0x80, 0x94, null, 0x0) = 0 (0x0) errno=4 (request was interrupted) (72.522µs)
I0722 19:29:44.826417 1 strace.go:614] [ 3302: 3310] runc X epoll_pwait(0x4 anon_inode:[eventpoll], 0x7ef08ccb7624 {}, 0x80, 0xe73c, null, 0x0) = 0 (0x0) errno=4 (request was interrupted) (426.836µs)
due to getting the following error, but am not sure if its relevant.
> [6/9] RUN /tmp/swiftly/swiftly init --quiet-shell-followup --assume-yes --skip-install --verbose:
1.713 runc run failed: unable to start container process: error during container init: reading from parent failed: fetch packet length from socket: interrupted system call
Dockerfile:
FROM ubuntu:24.04
ENV LANG="C.UTF-8"
ENV HOME=/root
ARG SWIFT_VERSION=6.1
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y curl tar gpg
RUN mkdir /tmp/swiftly \
&& cd /tmp/swiftly \
&& curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz
RUN cd /tmp/swiftly && tar zxf swiftly-$(uname -m).tar.gz -C /tmp/swiftly/
RUN /tmp/swiftly/swiftly init --skip-install --quiet-shell-followup --assume-yes --verbose
RUN echo '. ~/.local/share/swiftly/env.sh' >> /etc/profile
RUN bash -lc "swiftly install --use ${SWIFT_VERSION}"
RUN rm -rf /tmp/swiftly
Steps to reproduce
Run the following script:
#!/bin/bash
docker run --runtime runsc -d --rm --cap-add all --name docker-in-gvisor docker-in-gvisor
docker exec docker-in-gvisor mkdir -p /build
docker exec docker-in-gvisor bash -c "cat > /build/Dockerfile <<EOF
FROM ubuntu:24.04
ENV LANG=\"C.UTF-8\"
ENV HOME=/root
ARG SWIFT_VERSION=6.1
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y curl tar gpg
RUN mkdir /tmp/swiftly \\
&& cd /tmp/swiftly \\
&& curl -O https://download.swift.org/swiftly/linux/swiftly-\\\$(uname -m).tar.gz
RUN cd /tmp/swiftly && tar zxf swiftly-\\\$(uname -m).tar.gz -C /tmp/swiftly/
RUN /tmp/swiftly/swiftly init --skip-install --quiet-shell-followup --assume-yes --verbose
RUN echo '. ~/.local/share/swiftly/env.sh' >> /etc/profile
RUN bash -lc \"swiftly install --use \${SWIFT_VERSION}\"
RUN rm -rf /tmp/swiftly
EOF"
docker exec docker-in-gvisor bash -c "docker build --network=host -t base_image --load /build"
runsc version
runsc version release-20250707.0-15-g830cc9884e4d
spec: 1.2.0
docker version (if using docker)
Docker version 28.3.2, build 578ccf6
uname
Linux ip-10-1-14-250.ec2.internal 5.15.0-307.178.5.el9uek.x86_64 #2 SMP Wed Mar 19 13:03:40 PDT 2025 x86_64 x86_64 x86_64 GNU/Linux
EtiennePerot
Metadata
Metadata
Assignees
Labels
area: networkingIssue related to networkingIssue related to networkingtype: bugSomething isn't workingSomething isn't working