slim icon indicating copy to clipboard operation
slim copied to clipboard

fatal msg="docker-slim: failure" error="wait timeout"

Open identitymonk opened this issue 5 years ago • 14 comments

Hi,

I try to build a Centos 6.10 slim image to understand the process of Docker slim. All is run in docker in docker image from Gitlab CI. I unfortunately keep running into the following error which look like #94 :

docker-slim[build]: info=image.stack index=0 name='centos:6.10' id='sha256:48650444e4191276a912ac90816a4ce1e86f76419e004d445a2e42809fec05f7'
docker-slim[build]: info=image.stack index=1 name='centos-6.10:latest' id='sha256:e0b2b98132e9bd116ad47d76a5ce1f15af75a84feffab6d5e182d325eb997df4'
docker-slim[build]: state=image.inspection.done
docker-slim[build]: state=container.inspection.start
time="2020-02-11T19:45:16Z" level=debug msg="HasVolume: volume not found - docker-slim-sensor.1.26.1"
time="2020-02-11T19:45:16Z" level=debug msg="ensureSensorVolume: no volume yet = docker-slim-sensor.1.26.1" app=docker-slim command=build component=container.inspector
time="2020-02-11T19:45:16Z" level=debug msg="HasEmptyImage: empty image not found"
time="2020-02-11T19:45:17Z" level=debug msg="CreateVolumeWithData: volumeInfo = &{Name:docker-slim-sensor.1.26.1 Driver:local Mountpoint:/var/lib/docker/volumes/docker-slim-sensor.1.26.1/_data Labels:map[] Options:map[] CreatedAt:2020-02-11 19:45:17 +0000 UTC}"
time="2020-02-11T19:45:17Z" level=debug msg="CopyToVolume: containerID - 097faa00d72ce828374c4dd3c5f23fd36c434967b977a72e29d221944ef1f9e5"
time="2020-02-11T19:45:17Z" level=debug msg="version.Check: http status = 200 OK" app=docker-slim
time="2020-02-11T19:45:18Z" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{\"65501/tcp\":struct {}{}, \"65502/tcp\":struct {}{}}" app=docker-slim command=build component=container.inspector
docker-slim[build]: info=container status=created name=dockerslimk_49_20200211194518 id=16cbabfebfeac9a9cea8073a3972a54a25c28a6bfe8a387741e52f397e9686ae
time="2020-02-11T19:45:19Z" level=debug msg="RunContainer: container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{\"65501/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"32769\"}}, \"65502/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"32768\"}}}" app=docker-slim command=build component=container.inspector
time="2020-02-11T19:45:19Z" level=debug msg="ipc.NewClient(172.18.0.2,65501,65502)"
time="2020-02-11T19:45:19Z" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2020-02-11T19:45:19Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.18.0.2:65501,15s) [time=1581450319020594752]"
time="2020-02-11T19:45:34Z" level=debug msg="channel.NewClient: (dial time = 15.000224607s) - connect error = dial tcp 172.18.0.2:65501: i/o timeout"
time="2020-02-11T19:45:34Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2020-02-11T19:45:36Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.18.0.2:65501,15s) [time=1581450336021039306]"
time="2020-02-11T19:45:51Z" level=debug msg="channel.NewClient: (dial time = 15.000283198s) - connect error = dial tcp 172.18.0.2:65501: i/o timeout"
time="2020-02-11T19:45:51Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2020-02-11T19:45:53Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.18.0.2:65501,15s) [time=1581450353021560509]"
time="2020-02-11T19:46:08Z" level=debug msg="channel.NewClient: (dial time = 15.000244903s) - connect error = dial tcp 172.18.0.2:65501: i/o timeout"
time="2020-02-11T19:46:08Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2020-02-11T19:46:10Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.18.0.2:65501,15s) [time=1581450370021993733]"
time="2020-02-11T19:46:25Z" level=debug msg="channel.NewClient: (dial time = 15.000259497s) - connect error = dial tcp 172.18.0.2:65501: i/o timeout"
time="2020-02-11T19:46:25Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2020-02-11T19:46:27Z" level=debug msg="channel.NewClient: connect wait timeout (waited=1m8.002820802s)"
time="2020-02-11T19:46:27Z" level=error msg="channel.NewCommandClient: NewClient error = wait timeout"
time="2020-02-11T19:46:27Z" level=error msg="ipc.NewClient init error = wait timeout"
time="2020-02-11T19:46:27Z" level=fatal msg="docker-slim: failure" error="wait timeout" stack="goroutine 1 [running]:\nruntime/debug.Stack(0xc000145de8, 0x4c6a78, 0x0)\n\truntime/debug/stack.go:24 +0x9d\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0xb6bea0, 0xc000037700)\n\tgithub.com/docker-slim/docker-slim@/pkg/util/errutil/errutil.go:14 +0x54\ngithub.com/docker-slim/docker-slim/internal/app/master/commands.OnBuild(0x9c4e01, 0xa92aae, 0x10, 0x1, 0xc000027c00, 0x2e, 0xa93194, 0x11, 0xa80001, 0xc00011f470, ...)\n\tgithub.com/docker-slim/docker-slim@/internal/app/master/commands/build.go:247 +0x1318\ngithub.com/docker-slim/docker-slim/internal/app/master.init.0.func6(0xc0000aa9a0, 0x0, 0xc0000b0db0)\n\tgithub.com/docker-slim/docker-slim@/internal/app/master/cli.go:775 +0x1709\ngithub.com/urfave/cli.HandleAction(0x9b03a0, 0xab7478, 0xc0000aa9a0, 0xc0000aa9a0, 0x0)\n\tgithub.com/urfave/[email protected]/app.go:523 +0xbe\ngithub.com/urfave/cli.Command.Run(0xa8978f, 0x5, 0x0, 0x0, 0xc000148530, 0x1, 0x1, 0xaab688, 0x3e, 0x0, ...)\n\tgithub.com/urfave/[email protected]/command.go:174 +0x51c\ngithub.com/urfave/cli.(*App).Run(0xc000158000, 0xc00001e0c0, 0xc, 0xc, 0x0, 0x0)\n\tgithub.com/urfave/[email protected]/app.go:276 +0x718\ngithub.com/docker-slim/docker-slim/internal/app/master.runCli()\n\tgithub.com/docker-slim/docker-slim@/internal/app/master/cli.go:1159 +0x55\ngithub.com/docker-slim/docker-slim/internal/app/master.Run()\n\tgithub.com/docker-slim/docker-slim@/internal/app/master/app.go:6 +0x25\nmain.main()\n\tgithub.com/docker-slim/docker-slim@/cmd/docker-slim/main.go:8 +0x20\n" version="linux|Transformer|1.26.1|2ec04e169b12a87c5286aa09ef44eac1cea2c7a1|2019-11-28_04:37:59PM"

My Dockerfile is pretty simple (a starter):

FROM centos:6.10
LABEL maintainer="Me"
ENV DOCKER_CONTENT_TRUST=1
RUN sed -i "/distroverpkg=centos-release/a override_install_langs=en_US.utf8\ntsflags=nodocs" /etc/yum.conf
RUN yum update -y
RUN yum install -y curl
RUN yum install -y openssl
RUN yum install -y ca-certificates
RUN update-ca-trust force-enable
RUN yum clean all

The command contains what I think is necessary: dist_linux/docker-slim --debug --verbose --in-container build centos-6.10 --tag centos-6.10-slim --http-probe=false --continue-after=1 --show-clogs --show-blogs

The docker-slim container is correctly launched:

CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS                                                NAMES
16cbabfebfea        centos-6.10         "/opt/dockerslim/bin…"   About a minute ago   Up About a minute   0.0.0.0:32769->65501/tcp, 0.0.0.0:32768->65502/tcp   dockerslimk_49_20200211194518

And it seems the container waits for the command with no error:

 time="2020-02-11T19:45:18Z" level=debug msg="sensor: uid=0 euid=0"
time="2020-02-11T19:45:18Z" level=debug msg="sensor: sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"16cbabfebfea\", Release:\"3.10.0-1062.9.1.el7.x86_64\", Version:\"#1 SMP Fri Dec 6 15:49:49 UTC 2019\", Machine:\"x86_64\", Domainname:\"(none)\", OsName:\"unknown\", OsBuild:\"\"}"
time="2020-02-11T19:45:18Z" level=debug msg="sensor: kernel flags => map[string]string(nil)"
time="2020-02-11T19:45:18Z" level=info msg="sensor: args => []string{\"/opt/dockerslim/bin/docker-slim-sensor\", \"-d\"}"
time="2020-02-11T19:45:18Z" level=debug msg="sensor: cwd => \"/\""
time="2020-02-11T19:45:18Z" level=debug msg="sensor: setting up channels..."
time="2020-02-11T19:45:18Z" level=debug msg="sensor: ipc.Server.Run()"
time="2020-02-11T19:45:18Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65502 [time=1581450318970775521]"
time="2020-02-11T19:45:18Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65501 [time=1581450318971080394]"
time="2020-02-11T19:45:18Z" level=info msg="sensor: waiting for commands..."
time="2020-02-11T19:45:18Z" level=debug msg="channel.Server.Start.loop()... [time=1581450318971246231]"
time="2020-02-11T19:45:18Z" level=debug msg="sensor: ipc.Server.Run - waiting for done signal..."
time="2020-02-11T19:45:18Z" level=debug msg="channel.Server.Start.loop()... [time=1581450318971557664]"
time="2020-02-11T19:45:18Z" level=debug msg="sensor: error collector - waiting for errors..."
time="2020-02-11T19:45:23Z" level=debug msg=.
time="2020-02-11T19:45:28Z" level=debug msg=.
time="2020-02-11T19:45:33Z" level=debug msg=.
time="2020-02-11T19:45:38Z" level=debug msg=.
time="2020-02-11T19:45:43Z" level=debug msg=.
time="2020-02-11T19:45:48Z" level=debug msg=.
time="2020-02-11T19:45:53Z" level=debug msg=.
time="2020-02-11T19:45:58Z" level=debug msg=.
time="2020-02-11T19:46:03Z" level=debug msg=.
time="2020-02-11T19:46:08Z" level=debug msg=.
time="2020-02-11T19:46:13Z" level=debug msg=.
time="2020-02-11T19:46:18Z" level=debug msg=.
time="2020-02-11T19:46:23Z" level=debug msg=.

Any idea please? Appreciated

identitymonk avatar Feb 11 '20 20:02 identitymonk

@identitymonk Do you see any command related messages from the main docker-slim process in the debug output?

With GitLab or any other containerized CI environments you might have to do something extra to allow the source container to communicate with the target container docker-slim creates. This is probably why you are not seeing any commands in the target image logs. Take a look at this example to see what I did for GitLab: https://gitlab.com/k.q/sandbox/-/blob/master/.gitlab-ci.yml

Note that you also need an application in your container image, so docker-slim can figure out what artifacts it needs to keep. For example, with your test image you can tell docker-slim that curl is your application (and the command might look like this: docker-slim build --http-probe=false --entrypoint curl --cmd https://www.google.com your_image_name). If you don't have an app then you need to tell docker-slim what to keep using the --include-path, --include-path-file, --include-bin, --include-exe and --include-shell parameters.

kcq avatar Feb 25 '20 19:02 kcq

@kcq I've run into this error on a Cloud Build job

steps:
  - name: "gcr.io/cloud-builders/docker"
    entrypoint: "bash"
    args:
      - "-c"
      - |
        curl -L -o ds.tar.gz https://downloads.dockerslim.com/releases/1.37.3/dist_linux.tar.gz;
        tar -xvf ds.tar.gz;
        mv  dist_linux/docker-slim /usr/local/bin/;
        mv  dist_linux/docker-slim-sensor /usr/local/bin/;
        docker build -f Dockerfile_base -t trademark .; 
        cat /etc/hosts;
        grep docker /etc/hosts | cut -f1;
        docker info;
        docker volume ls;
        docker images;
        docker-slim --debug  build  --show-clogs --new-expose=8080 --http-probe-ports=8080 --mount /var/run/docker.sock:/var/run/docker.sock trademark;

then the output

127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.10.2    012d3328454a
Client:
 Debug Mode: false

Server:
 Containers: 4
  Running: 3
  Paused: 0
  Stopped: 1
 Images: 108
 Server Version: 20.10.12
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.0-1058-gcp
 Operating System: Ubuntu 18.04.6 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.841GiB
 Name: worker-9f254093-6064-4ac1-925e-730f0100ac4c
 ID: BFFR:FLWN:NTMU:MV4X:QH4A:7SVX:FM2N:I4UB:LYW5:PDDN:EU2L:RKIF
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 53
  Goroutines: 67
  System Time: 2022-02-20T13:23:07.417075127Z
  EventsListeners: 0
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  https://mirror.gcr.io/
 Live Restore Enabled: false

WARNING: No swap limit support
DRIVER              VOLUME NAME
local               3de6450126e707fd54857cdd0610c4ec26b401d26a31f32f25e4ea26ff93f0c7
local               home-volume
local               scratch-volume
local               step-0-ea077e4e-718e-4bcb-98e8-d67c95af901c
REPOSITORY                                        TAG                              IMAGE ID            CREATED             SIZE
trademark                                         latest                           62a19d3d3e3d        8 seconds ago       435MB
<...the_list_simplified_edited..>
time="2022-02-20T13:23:08Z" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"012d3328454a\", Release:\"5.4.0-1058-gcp\", Version:\"#62~18.04.1-Ubuntu SMP Mon Nov 15 07:49:04 UTC 2021\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Ubuntu\", Version:\"20.04\", DisplayName:\"Ubuntu 20.04.3 LTS\"}}"
docker-slim: message='join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
docker-slim: message='join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
docker-slim: message='Github discussions' info='https://github.com/docker-slim/docker-slim/discussions'
cmd=build info=param.http.probe message='using default probe'
time="2022-02-20T13:23:08Z" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=docker-slim command=build
time="2022-02-20T13:23:08Z" level=debug msg="docker-slim: new Docker client (default) [6]"
time="2022-02-20T13:23:08Z" level=debug msg="docker-slim: configured DOCKER_HOST env var"
cmd=build state=started
cmd=build info=params target.type='image' target='trademark' continue.mode='probe' rt.as.user='true' keep.perms='true' tags=''
time="2022-02-20T13:23:08Z" level=info msg="image=trademark http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (false) cmd=[] (false) workdir='' env=[] expose=map[]" app=docker-slim command=build
cmd=build info=app version='linux|Transformer|1.37.3|97eb3c8c7f8c4e295a26c13882feb3f0539ab50f|2021-12-10_09:37:29AM' container=true dsimage=false    
cmd=build info=app location='/usr/local/bin'
cmd=build info=host osname='Ubuntu 20.04.3 LTS'
cmd=build info=host osbuild=
cmd=build info=host version='#62~18.04.1-Ubuntu SMP Mon Nov 15 07:49:04 UTC 2021'
cmd=build info=host release=5.4.0-1058-gcp
cmd=build info=host sysname=Linux
cmd=build info=docker name=worker-9f254093-6064-4ac1-925e-730f0100ac4c
cmd=build info=docker kernel_version=5.4.0-1058-gcp
cmd=build info=docker operating_system=Ubuntu 18.04.6 LTS
cmd=build info=docker ostype=linux
cmd=build info=docker server_version=20.10.12
cmd=build info=docker architecture=x86_64
cmd=build info=dclient api_version=1.41
cmd=build info=dclient min_api_version=1.12
cmd=build info=dclient build_time=2021-12-13T11:43:36.000000000+00:00
cmd=build info=dclient git_commit=459d0df
time="2022-02-20T13:23:08Z" level=info msg="inspecting 'fat' image metadata..." app=docker-slim command=build
cmd=build state=image.inspection.start
time="2022-02-20T13:23:08Z" level=debug msg="PrepareImageStateDirs(,sha256:62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d)"        
time="2022-02-20T13:23:08Z" level=debug msg="PrepareImageStateDirs - statePrefix=/usr/local/bin appDir=/usr/local/bin badPath=/usr/local/bin"        
time="2022-02-20T13:23:08Z" level=debug msg="PrepareImageStateDirs - overriding state path to /tmp/docker-slim-state"
time="2022-02-20T13:23:08Z" level=debug msg="PrepareImageStateDirs - statePrefix=/tmp/docker-slim-state appDir=/usr/local/bin badPath=/usr/local/bin"time="2022-02-20T13:23:08Z" level=debug msg="PrepareImageStateDirs - copying sensor to state path (to /tmp/docker-slim-state)"
time="2022-02-20T13:23:08Z" level=debug msg="CopyRegularFile(false,/usr/local/bin/docker-slim-sensor,/tmp/docker-slim-state/docker-slim-sensor,true)"time="2022-02-20T13:23:08Z" level=debug msg="PrepareImageStateDirs - will create new state location: /tmp/docker-slim-state/.docker-slim-state/images/62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d/artifacts"
time="2022-02-20T13:23:08Z" level=debug msg="PrepareImageStateDirs - created new image state location: /tmp/docker-slim-state/.docker-slim-state/images/62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d/artifacts"
time="2022-02-20T13:23:08Z" level=debug msg="localVolumePath=/tmp/docker-slim-state/.docker-slim-state/images/62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d, artifactLocation=/tmp/docker-slim-state/.docker-slim-state/images/62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d/artifacts, statePath=/tmp/docker-slim-state, stateKey=62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d" app=docker-slim command=build
cmd=build info=image id='sha256:62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d' size.bytes='435115575' size.human='435 MB'
time="2022-02-20T13:23:08Z" level=info msg="processing 'fat' image info..." app=docker-slim command=build
time="2022-02-20T13:23:08Z" level=debug msg="\n\nIMAGE HISTORY =>\n[]docker.ImageHistory{docker.ImageHistory{ID:\"sha256:62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d\", Tags:[]string{\"trademark:latest\"}, Created:1645363380, CreatedBy:\"/bin/sh -c #(nop) COPY dir:7960a011b84b84f5aa438e073fc4b0f165ba43b7d1aca7e13134e1eae9ec56f8 in /var/www/html \", Size:12485694, Comment:\"\"}, docker.ImageHistory{ID:\"sha256:1f458a7f947efb126d5805d60d3cc117e628e3416723c7d1a16e99c92e904b98\", Tags:[]string(nil), Created:1645363379, CreatedBy:\"/bin/sh -c #(nop)  EXPOSE 8080\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"sha256:0ffb3d00524ae470972d812c218293206bfa7a6213b571e3d1dc0ad3883441f5\", Tags:[]string{\"php:8.1.2-apache-buster\"}, Created:1643216886, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"apache2-foreground\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216886, CreatedBy:\"/bin/sh -c #(nop)  EXPOSE 80\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216885, CreatedBy:\"/bin/sh -c #(nop) WORKDIR /var/www/html\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216885, CreatedBy:\"/bin/sh -c #(nop) COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/ \", Size:1346, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216885, CreatedBy:\"/bin/sh -c #(nop)  STOPSIGNAL SIGWINCH\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216884, CreatedBy:\"/bin/sh -c #(nop)  ENTRYPOINT [\\\"docker-php-entrypoint\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), 
Created:1643216884, CreatedBy:\"/bin/sh -c docker-php-ext-enable sodium\", Size:17, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216882, CreatedBy:\"/bin/sh -c #(nop) COPY multi:ee8b9bb4e448c5d38508b40a8ace77d14cf000229390e687b6d467283c9826e6 in /usr/local/bin/ \", Size:6872, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216881, CreatedBy:\"/bin/sh -c set -eux; \\t\\tsavedAptMark=\\\"$(apt-mark showmanual)\\\"; \\tapt-get update; \\tapt-get install -y --no-install-recommends \\t\\tapache2-dev \\t\\tlibargon2-dev \\t\\tlibcurl4-openssl-dev \\t\\tlibonig-dev \\t\\tlibreadline-dev \\t\\tlibsodium-dev \\t\\tlibsqlite3-dev \\t\\tlibssl-dev \\t\\tlibxml2-dev \\t\\tzlib1g-dev \\t; \\t\\texport \\t\\tCFLAGS=\\\"$PHP_CFLAGS\\\" \\t\\tCPPFLAGS=\\\"$PHP_CPPFLAGS\\\" \\t\\tLDFLAGS=\\\"$PHP_LDFLAGS\\\" \\t; \\tdocker-php-source extract; \\tcd /usr/src/php; \\tgnuArch=\\\"$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)\\\"; \\tdebMultiarch=\\\"$(dpkg-architecture 
--query DEB_BUILD_MULTIARCH)\\\"; \\tif [ ! -d /usr/include/curl ]; then \\t\\tln -sT \\\"/usr/include/$debMultiarch/curl\\\" /usr/local/include/curl; \\tfi; \\t./configure \\t\\t--build=\\\"$gnuArch\\\" \\t\\t--with-config-file-path=\\\"$PHP_INI_DIR\\\" \\t\\t--with-config-file-scan-dir=\\\"$PHP_INI_DIR/conf.d\\\" \\t\\t\\t\\t--enable-option-checking=fatal \\t\\t\\t\\t--with-mhash \\t\\t\\t\\t--with-pic \\t\\t\\t\\t--enable-ftp \\t\\t--enable-mbstring \\t\\t--enable-mysqlnd \\t\\t--with-password-argon2 \\t\\t--with-sodium=shared \\t\\t--with-pdo-sqlite=/usr \\t\\t--with-sqlite3=/usr \\t\\t\\t\\t--with-curl \\t\\t--with-openssl \\t\\t--with-readline \\t\\t--with-zlib \\t\\t\\t\\t--with-pear \\t\\t\\t\\t$(test \\\"$gnuArch\\\" = 's390x-linux-gnu' && echo '--without-pcre-jit') \\t\\t--with-libdir=\\\"lib/$debMultiarch\\\" \\t\\t\\t\\t--disable-cgi \\t\\t\\t\\t--with-apxs2 \\t; \\tmake -j \\\"$(nproc)\\\"; \\tfind -type f -name '*.a' -delete; \\tmake install; \\tfind \\t\\t/usr/local \\t\\t-type f \\t\\t-perm '/0111' \\t\\t-exec sh -euxc ' \\t\\t\\tstrip --strip-all \\\"$@\\\" || : \\t\\t' -- '{}' + \\t; \\tmake clean; \\t\\tcp -v php.ini-* \\\"$PHP_INI_DIR/\\\"; \\t\\tcd /; \\tdocker-php-source delete; \\t\\tapt-mark auto '.*' > /dev/null; \\t[ -z \\\"$savedAptMark\\\" ] || apt-mark manual $savedAptMark; \\tfind /usr/local -type f -executable -exec ldd '{}' ';' \\t\\t| awk '/=>/ { print $(NF-1) }' \\t\\t| sort -u \\t\\t| xargs -r dpkg-query --search \\t\\t| cut -d: -f1 \\t\\t| sort -u \\t\\t| xargs -r apt-mark manual \\t; \\tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \\trm -rf /var/lib/apt/lists/*; \\t\\tpecl update-channels; \\trm -rf /tmp/pear ~/.pearrc; \\t\\tphp --version\", Size:67201152, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216432, CreatedBy:\"/bin/sh -c #(nop) COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/ \", Size:587, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216431, CreatedBy:\"/bin/sh -c set -eux; \\t\\tsavedAptMark=\\\"$(apt-mark showmanual)\\\"; \\tapt-get update; \\tapt-get install -y --no-install-recommends gnupg 
dirmngr; \\trm -rf /var/lib/apt/lists/*; \\t\\tmkdir -p /usr/src; \\tcd /usr/src; \\t\\tcurl -fsSL -o php.tar.xz \\\"$PHP_URL\\\"; \\t\\tif [ -n \\\"$PHP_SHA256\\\" ]; then \\t\\techo \\\"$PHP_SHA256 *php.tar.xz\\\" | sha256sum -c -; \\tfi; \\t\\tif [ -n \\\"$PHP_ASC_URL\\\" ]; then \\t\\tcurl -fsSL -o php.tar.xz.asc \\\"$PHP_ASC_URL\\\"; \\t\\texport GNUPGHOME=\\\"$(mktemp -d)\\\"; \\t\\tfor key in $GPG_KEYS; do \\t\\t\\tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys \\\"$key\\\"; \\t\\tdone; \\t\\tgpg --batch --verify php.tar.xz.asc php.tar.xz; \\t\\tgpgconf --kill all; \\t\\trm -rf \\\"$GNUPGHOME\\\"; \\tfi; \\t\\tapt-mark auto '.*' > /dev/null; \\tapt-mark manual $savedAptMark > /dev/null; \\tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false\", Size:12959442, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216392, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_SHA256=6b448242fd360c1a9f265b7263abf3da25d28f2b2b0f5465533b69be51a391dd\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_URL=https://www.php.net/distributions/php-8.1.2.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.1.2.tar.xz.asc\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_VERSION=8.1.2\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_LDFLAGS=-Wl,-O1 -pie\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216390, CreatedBy:\"/bin/sh -c 
#(nop)  ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216390, CreatedBy:\"/bin/sh -c { \\t\\techo '<FilesMatch \\\\.php$>'; \\t\\techo '\\\\tSetHandler application/x-httpd-php'; \\t\\techo '</FilesMatch>'; \\t\\techo; \\t\\techo 'DirectoryIndex disabled'; \\t\\techo 'DirectoryIndex index.php index.html'; \\t\\techo; \\t\\techo '<Directory /var/www/>'; \\t\\techo '\\\\tOptions -Indexes'; \\t\\techo '\\\\tAllowOverride All'; \\t\\techo '</Directory>'; \\t} | tee \\\"$APACHE_CONFDIR/conf-available/docker-php.conf\\\" \\t&& a2enconf docker-php\", Size:237, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216389, CreatedBy:\"/bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork\", Size:68, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216388, CreatedBy:\"/bin/sh -c set -eux; \\tapt-get update; \\tapt-get install -y --no-install-recommends apache2; \\trm -rf /var/lib/apt/lists/*; \\t\\tsed -ri 's/^export ([^=]+)=(.*)$/: ${\\\\1:=\\\\2}\\\\nexport \\\\1/' \\\"$APACHE_ENVVARS\\\"; \\t\\t. \\\"$APACHE_ENVVARS\\\"; \\tfor dir in \\t\\t\\\"$APACHE_LOCK_DIR\\\" \\t\\t\\\"$APACHE_RUN_DIR\\\" \\t\\t\\\"$APACHE_LOG_DIR\\\" \\t; do \\t\\trm -rvf \\\"$dir\\\"; \\t\\tmkdir -p \\\"$dir\\\"; \\t\\tchown \\\"$APACHE_RUN_USER:$APACHE_RUN_GROUP\\\" \\\"$dir\\\"; \\t\\tchmod 777 \\\"$dir\\\"; \\tdone; \\t\\trm -rvf /var/www/html/*; \\t\\tln -sfT /dev/stderr \\\"$APACHE_LOG_DIR/error.log\\\"; \\tln -sfT /dev/stdout \\\"$APACHE_LOG_DIR/access.log\\\"; \\tln -sfT /dev/stdout \\\"$APACHE_LOG_DIR/other_vhosts_access.log\\\"; \\tchown -R --no-dereference \\\"$APACHE_RUN_USER:$APACHE_RUN_GROUP\\\" \\\"$APACHE_LOG_DIR\\\"\", Size:45888628, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216378, CreatedBy:\"/bin/sh -c #(nop)  ENV APACHE_ENVVARS=/etc/apache2/envvars\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216378, CreatedBy:\"/bin/sh -c #(nop)  ENV APACHE_CONFDIR=/etc/apache2\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215897, CreatedBy:\"/bin/sh -c set -eux; \\tmkdir -p \\\"$PHP_INI_DIR/conf.d\\\"; \\t[ ! -d /var/www/html ]; \\tmkdir -p /var/www/html; \\tchown www-data:www-data /var/www/html; \\tchmod 777 /var/www/html\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215896, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_INI_DIR=/usr/local/etc/php\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215895, CreatedBy:\"/bin/sh -c set -eux; \\tapt-get update; \\tapt-get install -y --no-install-recommends \\t\\t$PHPIZE_DEPS \\t\\tca-certificates \\t\\tcurl \\t\\txz-utils \\t; \\trm -rf /var/lib/apt/lists/*\", Size:227297969, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215875, CreatedBy:\"/bin/sh -c #(nop)  ENV PHPIZE_DEPS=autoconf \\t\\tdpkg-dev \\t\\tfile \\t\\tg++ \\t\\tgcc \\t\\tlibc-dev \\t\\tmake \\t\\tpkg-config \\t\\tre2c\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215875, CreatedBy:\"/bin/sh -c set -eux; \\t{ \\t\\techo 'Package: php*'; \\t\\techo 'Pin: release *'; \\t\\techo 'Pin-Priority: -1'; \\t} > /etc/apt/preferences.d/no-debian-php\", Size:46, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643161259, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"bash\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643161259, CreatedBy:\"/bin/sh -c #(nop) ADD file:c51141702f568a28a7e3e7a2748f5ead5754e32d7b1cf7ebc8f4326273d05206 in 
/ \", Size:69273517, Comment:\"\"}}\n\n"
time="2022-02-20T13:23:08Z" level=debug msg="IMAGE INSTRUCTIONS:"
time="2022-02-20T13:23:08Z" level=debug msg="FROM scratch"
time="2022-02-20T13:23:08Z" level=debug msg="# new image"
time="2022-02-20T13:23:08Z" level=debug msg="ADD file:c51141702f568a28a7e3e7a2748f5ead5754e32d7b1cf7ebc8f4326273d05206 /"
time="2022-02-20T13:23:08Z" level=debug msg="CMD [\"bash\"]\n"
time="2022-02-20T13:23:08Z" level=debug msg="RUN set -eux; \t{ \t\techo 'Package: php*'; \t\techo 'Pin: release *'; \t\techo 'Pin-Priority: -1'; \t} 
> /etc/apt/preferences.d/no-debian-php"
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHPIZE_DEPS=autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c"
time="2022-02-20T13:23:08Z" level=debug msg="RUN set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends \t\t$PHPIZE_DEPS \t\tca-certificates \t\tcurl \t\txz-utils \t; \trm -rf /var/lib/apt/lists/*"
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHP_INI_DIR=/usr/local/etc/php"
time="2022-02-20T13:23:08Z" level=debug msg="RUN set -eux; \tmkdir -p \"$PHP_INI_DIR/conf.d\"; \t[ ! -d /var/www/html ]; \tmkdir -p /var/www/html; \tchown www-data:www-data /var/www/html; \tchmod 777 /var/www/html"
time="2022-02-20T13:23:08Z" level=debug msg="ENV APACHE_CONFDIR=/etc/apache2"
time="2022-02-20T13:23:08Z" level=debug msg="ENV APACHE_ENVVARS=/etc/apache2/envvars"
time="2022-02-20T13:23:08Z" level=debug msg="RUN set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends apache2; \trm -rf /var/lib/apt/lists/*; \t\tsed -ri 's/^export ([^=]+)=(.*)$/: ${\\1:=\\2}\\nexport \\1/' \"$APACHE_ENVVARS\"; \t\t. \"$APACHE_ENVVARS\"; \tfor dir in \t\t\"$APACHE_LOCK_DIR\" \t\t\"$APACHE_RUN_DIR\" \t\t\"$APACHE_LOG_DIR\" \t; do \t\trm -rvf \"$dir\"; \t\tmkdir -p \"$dir\"; \t\tchown \"$APACHE_RUN_USER:$APACHE_RUN_GROUP\" \"$dir\"; \t\tchmod 777 \"$dir\"; \tdone; \t\trm -rvf /var/www/html/*; \t\tln -sfT /dev/stderr \"$APACHE_LOG_DIR/error.log\"; \tln -sfT /dev/stdout \"$APACHE_LOG_DIR/access.log\"; \tln -sfT /dev/stdout \"$APACHE_LOG_DIR/other_vhosts_access.log\"; \tchown -R --no-dereference \"$APACHE_RUN_USER:$APACHE_RUN_GROUP\" \"$APACHE_LOG_DIR\""
time="2022-02-20T13:23:08Z" level=debug msg="RUN a2dismod mpm_event && \\\n\ta2enmod mpm_prefork"
time="2022-02-20T13:23:08Z" level=debug msg="RUN { \t\techo '<FilesMatch \\.php$>'; \t\techo '\\tSetHandler application/x-httpd-php'; \t\techo '</FilesMatch>'; \t\techo; \t\techo 'DirectoryIndex disabled'; \t\techo 'DirectoryIndex index.php index.html'; \t\techo; \t\techo '<Directory /var/www/>'; 
\t\techo '\\tOptions -Indexes'; \t\techo '\\tAllowOverride All'; \t\techo '</Directory>'; \t} | tee \"$APACHE_CONFDIR/conf-available/docker-php.conf\" && \\\n\ta2enconf docker-php"
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"     
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"   
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHP_LDFLAGS=-Wl,-O1 -pie"
time="2022-02-20T13:23:08Z" level=debug msg="ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD"
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHP_VERSION=8.1.2"
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHP_URL=https://www.php.net/distributions/php-8.1.2.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.1.2.tar.xz.asc"
time="2022-02-20T13:23:08Z" level=debug msg="ENV PHP_SHA256=6b448242fd360c1a9f265b7263abf3da25d28f2b2b0f5465533b69be51a391dd"
time="2022-02-20T13:23:08Z" level=debug msg="RUN set -eux; \t\tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends gnupg dirmngr; \trm -rf /var/lib/apt/lists/*; \t\tmkdir -p /usr/src; \tcd /usr/src; \t\tcurl -fsSL -o php.tar.xz \"$PHP_URL\"; \t\tif [ -n \"$PHP_SHA256\" ]; then \t\techo \"$PHP_SHA256 *php.tar.xz\" | sha256sum -c -; \tfi; \t\tif [ -n \"$PHP_ASC_URL\" ]; then \t\tcurl -fsSL -o php.tar.xz.asc \"$PHP_ASC_URL\"; \t\texport GNUPGHOME=\"$(mktemp -d)\"; \t\tfor key in $GPG_KEYS; do \t\t\tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys \"$key\"; \t\tdone; \t\tgpg --batch --verify php.tar.xz.asc php.tar.xz; \t\tgpgconf --kill all; \t\trm -rf \"$GNUPGHOME\"; \tfi; \t\tapt-mark auto '.*' > /dev/null; \tapt-mark manual $savedAptMark > /dev/null; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false"
time="2022-02-20T13:23:08Z" level=debug msg="COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 /usr/local/bin/"
time="2022-02-20T13:23:08Z" level=debug msg="RUN set -eux; \t\tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tapache2-dev \t\tlibargon2-dev \t\tlibcurl4-openssl-dev \t\tlibonig-dev \t\tlibreadline-dev \t\tlibsodium-dev \t\tlibsqlite3-dev \t\tlibssl-dev \t\tlibxml2-dev \t\tzlib1g-dev \t; \t\texport \t\tCFLAGS=\"$PHP_CFLAGS\" \t\tCPPFLAGS=\"$PHP_CPPFLAGS\" \t\tLDFLAGS=\"$PHP_LDFLAGS\" 
\t; \tdocker-php-source extract; \tcd /usr/src/php; \tgnuArch=\"$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)\"; \tdebMultiarch=\"$(dpkg-architecture --query DEB_BUILD_MULTIARCH)\"; \tif [ ! -d /usr/include/curl ]; then \t\tln -sT \"/usr/include/$debMultiarch/curl\" /usr/local/include/curl; \tfi; \t./configure \t\t--build=\"$gnuArch\" \t\t--with-config-file-path=\"$PHP_INI_DIR\" \t\t--with-config-file-scan-dir=\"$PHP_INI_DIR/conf.d\" \t\t\t\t--enable-option-checking=fatal \t\t\t\t--with-mhash \t\t\t\t--with-pic \t\t\t\t--enable-ftp \t\t--enable-mbstring \t\t--enable-mysqlnd \t\t--with-password-argon2 \t\t--with-sodium=shared \t\t--with-pdo-sqlite=/usr \t\t--with-sqlite3=/usr \t\t\t\t--with-curl \t\t--with-openssl \t\t--with-readline 
\t\t--with-zlib \t\t\t\t--with-pear \t\t\t\t$(test \"$gnuArch\" = 's390x-linux-gnu' && \\\n\techo '--without-pcre-jit') \t\t--with-libdir=\"lib/$debMultiarch\" \t\t\t\t--disable-cgi \t\t\t\t--with-apxs2 \t; \tmake -j \"$(nproc)\"; \tfind -type f -name '*.a' -delete; \tmake install; \tfind \t\t/usr/local \t\t-type f \t\t-perm '/0111' \t\t-exec sh -euxc ' \t\t\tstrip --strip-all \"$@\" || : \t\t' -- '{}' + \t; \tmake clean; \t\tcp -v php.ini-* \"$PHP_INI_DIR/\"; \t\tcd /; \tdocker-php-source delete; \t\tapt-mark auto '.*' > /dev/null; \t[ -z \"$savedAptMark\" ] || apt-mark manual $savedAptMark; \tfind /usr/local -type f -executable -exec ldd '{}' ';' \t\t| awk '/=>/ { print $(NF-1) }' \t\t| sort -u \t\t| xargs -r dpkg-query --search \t\t| cut -d: -f1 \t\t| sort -u \t\t| xargs -r apt-mark manual \t; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \trm -rf /var/lib/apt/lists/*; \t\tpecl update-channels; \trm -rf /tmp/pear ~/.pearrc; \t\tphp --version"
time="2022-02-20T13:23:08Z" level=debug msg="COPY multi:ee8b9bb4e448c5d38508b40a8ace77d14cf000229390e687b6d467283c9826e6 /usr/local/bin/"
time="2022-02-20T13:23:08Z" level=debug msg="RUN docker-php-ext-enable sodium"
time="2022-02-20T13:23:08Z" level=debug msg="ENTRYPOINT [\"docker-php-entrypoint\"]\n"
time="2022-02-20T13:23:08Z" level=debug msg="STOPSIGNAL SIGWINCH"
time="2022-02-20T13:23:08Z" level=debug msg="COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 /usr/local/bin/"
time="2022-02-20T13:23:08Z" level=debug msg="WORKDIR /var/www/html"
time="2022-02-20T13:23:08Z" level=debug msg="EXPOSE 80"
time="2022-02-20T13:23:08Z" level=debug msg="CMD [\"apache2-foreground\"]\n"
time="2022-02-20T13:23:08Z" level=debug msg="# end of image: php:8.1.2-apache-buster (id:  tags: php:8.1.2-apache-buster)"
time="2022-02-20T13:23:08Z" level=debug
time="2022-02-20T13:23:08Z" level=debug msg="# new image"
time="2022-02-20T13:23:08Z" level=debug msg="EXPOSE 8080"
time="2022-02-20T13:23:08Z" level=debug msg="COPY dir:7960a011b84b84f5aa438e073fc4b0f165ba43b7d1aca7e13134e1eae9ec56f8 /var/www/html"
time="2022-02-20T13:23:08Z" level=debug msg="# end of image: trademark:latest (id:  tags: trademark:latest)"
time="2022-02-20T13:23:08Z" level=debug
cmd=build info=image.stack index='0' name='php:8.1.2-apache-buster' id='sha256:0ffb3d00524ae470972d812c218293206bfa7a6213b571e3d1dc0ad3883441f5'     
cmd=build info=image.stack index='1' name='trademark:latest' id='sha256:62a19d3d3e3da33b48df091a80cc28033fb4d568b9c4ebea9501c2a03981845d'
cmd=build info=image.exposed_ports list='80,8080'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
time="2022-02-20T13:23:08Z" level=debug msg="FatContainerCmd - [docker-php-entrypoint apache2-foreground]" app=docker-slim command=build component=container.inspector
time="2022-02-20T13:23:08Z" level=info msg="starting instrumented 'fat' container..." app=docker-slim command=build
time="2022-02-20T13:23:08Z" level=debug msg="RunContainer: sensor (/usr/local/bin/docker-slim-sensor) perms => 0755" app=docker-slim command=build component=container.inspector
time="2022-02-20T13:23:08Z" level=debug msg="dockerutil.HasVolume: volume not found - docker-slim-sensor.1.37.3"
time="2022-02-20T13:23:08Z" level=debug msg="ensureSensorVolume: no volume yet = docker-slim-sensor.1.37.3" app=docker-slim command=build component=container.inspector
time="2022-02-20T13:23:08Z" level=debug msg="version.Check: http status = 200 OK" app=docker-slim
time="2022-02-20T13:23:08Z" level=debug msg="dockerutil.CreateVolumeWithData: volumeInfo = &{Name:docker-slim-sensor.1.37.3 Driver:local Mountpoint:/var/lib/docker/volumes/docker-slim-sensor.1.37.3/_data Labels:map[] Options:map[] CreatedAt:2022-02-20 13:23:08 +0000 UTC}"
time="2022-02-20T13:23:08Z" level=debug msg="dockerutil.CopyToVolume: containerID - a410199c95095449ccaca70336a458a947af7f2b1945bf4f41293cdf25594fde"time="2022-02-20T13:23:09Z" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{\"65501/tcp\":struct {}{}, \"65502/tcp\":struct {}{}}" app=docker-slim command=build component=container.inspector
cmd=build info=container status='created' name='dockerslimk_70_20220220132309' id='be194d22f85381b7e38e2f371526da02104d2a61bfeb48a645cfb82ab1136cdb' 
time="2022-02-20T13:23:09Z" level=debug msg="RunContainer: container HostConfig.NetworkMode => default len(ports)=4" app=docker-slim command=build component=container.inspector
time="2022-02-20T13:23:09Z" level=debug msg="RunContainer: container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{\"65501/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49154\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49154\"}}, \"65502/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49153\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49153\"}}, \"80/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49156\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49156\"}}, \"8080/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49155\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49155\"}}}" app=docker-slim command=build component=container.inspector
time="2022-02-20T13:23:09Z" level=debug msg="ipc.NewClient(172.17.0.4,65501,65502)"
time="2022-02-20T13:23:09Z" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2022-02-20T13:23:09Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.4:65501,15s) [time=1645363389865717744]"
time="2022-02-20T13:23:24Z" level=debug msg="channel.NewClient: (dial time = 15.000340927s) - connect error = dial tcp 172.17.0.4:65501: i/o timeout"time="2022-02-20T13:23:24Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-20T13:23:26Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.4:65501,15s) [time=1645363406866409804]"
time="2022-02-20T13:23:41Z" level=debug msg="channel.NewClient: (dial time = 15.000516079s) - connect error = dial tcp 172.17.0.4:65501: i/o timeout"time="2022-02-20T13:23:41Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-20T13:23:43Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.4:65501,15s) [time=1645363423867230603]"
time="2022-02-20T13:23:58Z" level=debug msg="channel.NewClient: (dial time = 15.0004055s) - connect error = dial tcp 172.17.0.4:65501: i/o timeout"
time="2022-02-20T13:23:58Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-20T13:24:00Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.4:65501,15s) [time=1645363440867853052]"
time="2022-02-20T13:24:15Z" level=debug msg="channel.NewClient: (dial time = 15.000251227s) - connect error = dial tcp 172.17.0.4:65501: i/o timeout"time="2022-02-20T13:24:15Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-20T13:24:17Z" level=debug msg="channel.NewClient: connect wait timeout (waited=1m8.002697068s)"
time="2022-02-20T13:24:17Z" level=error msg="channel.NewCommandClient: NewClient error = wait timeout"
time="2022-02-20T13:24:17Z" level=error msg="ipc.NewClient init error = wait timeout"
time="2022-02-20T13:24:17Z" level=fatal msg="docker-slim: failure" error="wait timeout" stack="goroutine 1 [running]:\nruntime/debug.Stack(0xc0003388d0, 0x2e, 0xc000339050)\n\truntime/debug/stack.go:24 +0x9f\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0xfca5e0, 0xc000334d50)\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x54\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc0004fc900, 0xfca5e0, 0xc000334d50)\n\tgithub.com/docker-slim/docker-slim/pkg/app/execontext.go:43 +0x3a\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(0xc0004fc900, 0xc0004b74a0, 0x7ffdafe1aef5, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:893 +0x2de6\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc00047b340, 0x0, 0xc0004f86f0)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:629 +0x321b\ngithub.com/urfave/cli.HandleAction(0xd2e100, 0xeca9b0, 0xc00047b340, 0xc00047b340, 0x0)\n\tgithub.com/urfave/[email protected]/app.go:526 +0xfd\ngithub.com/urfave/cli.Command.Run(0xe824d9, 0x5, 0x0, 0x0, 0x1564aa0, 0x1, 0x1, 0xebe395, 0x6c, 0x0, ...)\n\tgithub.com/urfave/[email protected]/command.go:174 +0x58e\ngithub.com/urfave/cli.(*App).Run(0xc0003576c0, 0xc000030090, 0x9, 0x9, 0x0, 0x0)\n\tgithub.com/urfave/[email protected]/app.go:279 +0x7e8\ngithub.com/docker-slim/docker-slim/pkg/app/master.Run()\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/app.go:15 +0x54\nmain.main()\n\tgithub.com/docker-slim/docker-slim/cmd/docker-slim/main.go:8 +0x25\n" version="linux|Transformer|1.37.3|97eb3c8c7f8c4e295a26c13882feb3f0539ab50f|2021-12-10_09:37:29AM"
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1

do you have any guidance what to fix?

pentium10 avatar Feb 20 '22 13:02 pentium10

@pentium10 not sure about the Cloud Build environment, but the current Gitlab CI prevents the original ipc design from working as expected. The latest code in master addresses the changes in Gitlab CI and it may help with Cloud Build too. It'll be a part of the new upcoming release (1.37.4)

kcq avatar Feb 21 '22 06:02 kcq

I've built the master docker-slim version linux|Transformer|1.37.3-40-ga2b95b1|a2b95b1dacc4c7a5e3d0175bdc34369ceeb409fb|2022-02-21_08:49:08AM

this is the launch command

docker-slim --debug --in-container build --show-clogs --new-expose=8080 --http-probe-ports=8080  trademark;

I've tried setting --network=cloudbuild but no difference in resolution

and this is the failed output:

time="2022-02-21T09:15:12Z" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"ef2ae2e07ba5\", Release:\"5.4.0-1058-gcp\", Version:\"#62~18.04.1-Ubuntu SMP Mon Nov 15 07:49:04 UTC 2021\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Ubuntu\", Version:\"20.04\", DisplayName:\"Ubuntu 20.04.3 LTS\"}}"docker-slim: message='join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
docker-slim: message='join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
docker-slim: message='Github discussions' info='https://github.com/docker-slim/docker-slim/discussions'
cmd=build info=param.http.probe message='using default probe'
cmd=build state=started
cmd=build info=params keep.perms='true' tags='' target.type='image' target='trademark' continue.mode='probe' rt.as.user='true'
cmd=build info=app version='linux|Transformer|1.37.3-40-ga2b95b1|a2b95b1dacc4c7a5e3d0175bdc34369ceeb409fb|2022-02-21_08:49:08AM' container=true dsimage=false
cmd=build info=app location='/usr/local/bin'
cmd=build info=host osname='Ubuntu 20.04.3 LTS'
cmd=build info=host osbuild=
cmd=build info=host version='#62~18.04.1-Ubuntu SMP Mon Nov 15 07:49:04 UTC 2021'
cmd=build info=host release=5.4.0-1058-gcp
cmd=build info=host sysname=Linux
time="2022-02-21T09:15:12Z" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=docker-slim command=build
time="2022-02-21T09:15:12Z" level=debug msg="docker-slim: new Docker client (default) [6]"
time="2022-02-21T09:15:12Z" level=debug msg="docker-slim: configured DOCKER_HOST env var"
time="2022-02-21T09:15:12Z" level=info msg="image=trademark http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (false) cmd=[] (false) workdir='' env=[] expose=map[]" app=docker-slim command=build
cmd=build info=docker name=worker-36195989-75af-4fda-9335-6cf45d41fa47
cmd=build info=docker kernel_version=5.4.0-1058-gcp
cmd=build info=docker operating_system=Ubuntu 18.04.6 LTS
cmd=build info=docker ostype=linux
cmd=build info=docker server_version=20.10.12
cmd=build info=docker architecture=x86_64
cmd=build info=dclient api_version=1.41
cmd=build info=dclient min_api_version=1.12
cmd=build info=dclient build_time=2021-12-13T11:43:36.000000000+00:00
cmd=build info=dclient git_commit=459d0df
cmd=build state=image.inspection.start
time="2022-02-21T09:15:12Z" level=info msg="inspecting 'fat' image metadata..." app=docker-slim command=build
time="2022-02-21T09:15:12Z" level=debug msg="PrepareImageStateDirs(,sha256:3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980)"
time="2022-02-21T09:15:12Z" level=debug msg="PrepareImageStateDirs - statePrefix=/usr/local/bin appDir=/usr/local/bin badPath=/usr/local/bin"
time="2022-02-21T09:15:12Z" level=debug msg="PrepareImageStateDirs - overriding state path to /tmp/docker-slim-state"
time="2022-02-21T09:15:12Z" level=debug msg="PrepareImageStateDirs - statePrefix=/tmp/docker-slim-state appDir=/usr/local/bin badPath=/usr/local/bin"
time="2022-02-21T09:15:12Z" level=debug msg="PrepareImageStateDirs - copying sensor to state path (to /tmp/docker-slim-state)"
time="2022-02-21T09:15:12Z" level=debug msg="CopyRegularFile(false,/usr/local/bin/docker-slim-sensor,/tmp/docker-slim-state/docker-slim-sensor,true)"
time="2022-02-21T09:15:12Z" level=debug msg="PrepareImageStateDirs - will create new state location: /tmp/docker-slim-state/.docker-slim-state/images/3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980/artifacts"
cmd=build info=image id='sha256:3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980' size.bytes='435631006' size.human='436 MB'
time="2022-02-21T09:15:12Z" level=debug msg="PrepareImageStateDirs - created new image state location: /tmp/docker-slim-state/.docker-slim-state/images/3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980/artifacts"
time="2022-02-21T09:15:12Z" level=debug msg="localVolumePath=/tmp/docker-slim-state/.docker-slim-state/images/3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980, artifactLocation=/tmp/docker-slim-state/.docker-slim-state/images/3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980/artifacts, statePath=/tmp/docker-slim-state, stateKey=3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980" app=docker-slim command=build
time="2022-02-21T09:15:12Z" level=info msg="processing 'fat' image info..." app=docker-slim command=build
time="2022-02-21T09:15:12Z" level=debug msg="\n\nIMAGE HISTORY =>\n[]docker.ImageHistory{docker.ImageHistory{ID:\"sha256:3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980\", Tags:[]string{\"trademark:latest\"}, Created:1645434911, CreatedBy:\"/bin/sh -c #(nop) COPY dir:b8f8ccdd30d9300ef46bd612a052e1fe85afb8c3c651d28fe3ebd536d5a6738b in /var/www/html \", Size:13001125, Comment:\"\"}, docker.ImageHistory{ID:\"sha256:c5903a7ecff2893f2faa5a46d5ad2a2e4ba5962e80a3c10e57c57684f38e3c82\", Tags:[]string(nil), Created:1645434911, CreatedBy:\"/bin/sh -c #(nop)  EXPOSE 8080\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"sha256:0ffb3d00524ae470972d812c218293206bfa7a6213b571e3d1dc0ad3883441f5\", Tags:[]string{\"php:8.1.2-apache-buster\"}, Created:1643216886, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"apache2-foreground\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216886, CreatedBy:\"/bin/sh -c #(nop)  EXPOSE 80\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216885, CreatedBy:\"/bin/sh -c #(nop) WORKDIR /var/www/html\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216885, CreatedBy:\"/bin/sh -c #(nop) COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 in /usr/local/bin/ \", Size:1346, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216885, CreatedBy:\"/bin/sh -c #(nop)  STOPSIGNAL SIGWINCH\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216884, CreatedBy:\"/bin/sh -c #(nop)  ENTRYPOINT [\\\"docker-php-entrypoint\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216884, CreatedBy:\"/bin/sh -c docker-php-ext-enable sodium\", Size:17, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216882, CreatedBy:\"/bin/sh -c #(nop) COPY multi:ee8b9bb4e448c5d38508b40a8ace77d14cf000229390e687b6d467283c9826e6 in /usr/local/bin/ \", Size:6872, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216881, CreatedBy:\"/bin/sh -c set -eux; \\t\\tsavedAptMark=\\\"$(apt-mark showmanual)\\\"; \\tapt-get update; \\tapt-get install -y --no-install-recommends \\t\\tapache2-dev \\t\\tlibargon2-dev \\t\\tlibcurl4-openssl-dev \\t\\tlibonig-dev \\t\\tlibreadline-dev \\t\\tlibsodium-dev \\t\\tlibsqlite3-dev \\t\\tlibssl-dev \\t\\tlibxml2-dev \\t\\tzlib1g-dev \\t; \\t\\texport \\t\\tCFLAGS=\\\"$PHP_CFLAGS\\\" \\t\\tCPPFLAGS=\\\"$PHP_CPPFLAGS\\\" \\t\\tLDFLAGS=\\\"$PHP_LDFLAGS\\\" \\t; \\tdocker-php-source extract; \\tcd /usr/src/php; \\tgnuArch=\\\"$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)\\\"; \\tdebMultiarch=\\\"$(dpkg-architecture --query DEB_BUILD_MULTIARCH)\\\"; \\tif [ ! -d /usr/include/curl ]; then \\t\\tln -sT \\\"/usr/include/$debMultiarch/curl\\\" /usr/local/include/curl; \\tfi; \\t./configure \\t\\t--build=\\\"$gnuArch\\\" \\t\\t--with-config-file-path=\\\"$PHP_INI_DIR\\\" \\t\\t--with-config-file-scan-dir=\\\"$PHP_INI_DIR/conf.d\\\" \\t\\t\\t\\t--enable-option-checking=fatal \\t\\t\\t\\t--with-mhash \\t\\t\\t\\t--with-pic \\t\\t\\t\\t--enable-ftp \\t\\t--enable-mbstring \\t\\t--enable-mysqlnd \\t\\t--with-password-argon2 \\t\\t--with-sodium=shared \\t\\t--with-pdo-sqlite=/usr \\t\\t--with-sqlite3=/usr \\t\\t\\t\\t--with-curl \\t\\t--with-openssl \\t\\t--with-readline \\t\\t--with-zlib \\t\\t\\t\\t--with-pear \\t\\t\\t\\t$(test \\\"$gnuArch\\\" = 's390x-linux-gnu' && echo '--without-pcre-jit') \\t\\t--with-libdir=\\\"lib/$debMultiarch\\\" \\t\\t\\t\\t--disable-cgi \\t\\t\\t\\t--with-apxs2 \\t; \\tmake -j \\\"$(nproc)\\\"; \\tfind -type f -name '*.a' -delete; \\tmake install; \\tfind \\t\\t/usr/local \\t\\t-type f \\t\\t-perm '/0111' \\t\\t-exec sh -euxc ' \\t\\t\\tstrip --strip-all \\\"$@\\\" || : \\t\\t' -- '{}' + \\t; \\tmake clean; \\t\\tcp -v php.ini-* \\\"$PHP_INI_DIR/\\\"; \\t\\tcd /; \\tdocker-php-source delete; \\t\\tapt-mark auto '.*' > /dev/null; \\t[ -z \\\"$savedAptMark\\\" ] || apt-mark manual $savedAptMark; \\tfind /usr/local -type f -executable -exec ldd '{}' ';' \\t\\t| awk '/=>/ { print $(NF-1) }' \\t\\t| sort -u \\t\\t| xargs -r dpkg-query --search \\t\\t| cut -d: -f1 \\t\\t| sort -u \\t\\t| xargs -r apt-mark manual \\t; \\tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \\trm -rf /var/lib/apt/lists/*; \\t\\tpecl update-channels; \\trm -rf /tmp/pear ~/.pearrc; \\t\\tphp --version\", Size:67201152, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216432, CreatedBy:\"/bin/sh -c #(nop) COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/ \", Size:587, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216431, CreatedBy:\"/bin/sh -c set -eux; \\t\\tsavedAptMark=\\\"$(apt-mark showmanual)\\\"; \\tapt-get update; \\tapt-get install -y --no-install-recommends gnupg dirmngr; \\trm -rf /var/lib/apt/lists/*; \\t\\tmkdir -p /usr/src; \\tcd /usr/src; \\t\\tcurl -fsSL -o php.tar.xz \\\"$PHP_URL\\\"; \\t\\tif [ -n \\\"$PHP_SHA256\\\" ]; then \\t\\techo \\\"$PHP_SHA256 *php.tar.xz\\\" | sha256sum -c -; \\tfi; \\t\\tif [ -n \\\"$PHP_ASC_URL\\\" ]; then \\t\\tcurl -fsSL -o php.tar.xz.asc \\\"$PHP_ASC_URL\\\"; \\t\\texport GNUPGHOME=\\\"$(mktemp -d)\\\"; \\t\\tfor key in $GPG_KEYS; do \\t\\t\\tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys \\\"$key\\\"; \\t\\tdone; \\t\\tgpg --batch --verify php.tar.xz.asc php.tar.xz; \\t\\tgpgconf --kill all; \\t\\trm -rf \\\"$GNUPGHOME\\\"; \\tfi; \\t\\tapt-mark auto '.*' > /dev/null; \\tapt-mark manual $savedAptMark > /dev/null; \\tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false\", Size:12959442, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216392, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_SHA256=6b448242fd360c1a9f265b7263abf3da25d28f2b2b0f5465533b69be51a391dd\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_URL=https://www.php.net/distributions/php-8.1.2.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.1.2.tar.xz.asc\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_VERSION=8.1.2\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_LDFLAGS=-Wl,-O1 -pie\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216391, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216390, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216390, CreatedBy:\"/bin/sh -c { \\t\\techo '<FilesMatch \\\\.php$>'; \\t\\techo '\\\\tSetHandler application/x-httpd-php'; \\t\\techo '</FilesMatch>'; \\t\\techo; \\t\\techo 'DirectoryIndex disabled'; \\t\\techo 'DirectoryIndex index.php index.html'; \\t\\techo; \\t\\techo '<Directory /var/www/>'; \\t\\techo '\\\\tOptions -Indexes'; \\t\\techo '\\\\tAllowOverride All'; \\t\\techo '</Directory>'; \\t} | tee \\\"$APACHE_CONFDIR/conf-available/docker-php.conf\\\" \\t&& a2enconf docker-php\", Size:237, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216389, CreatedBy:\"/bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork\", Size:68, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216388, CreatedBy:\"/bin/sh -c set -eux; \\tapt-get update; \\tapt-get install -y --no-install-recommends apache2; \\trm -rf /var/lib/apt/lists/*; \\t\\tsed -ri 's/^export ([^=]+)=(.*)$/: ${\\\\1:=\\\\2}\\\\nexport \\\\1/' \\\"$APACHE_ENVVARS\\\"; \\t\\t. \\\"$APACHE_ENVVARS\\\"; \\tfor dir in \\t\\t\\\"$APACHE_LOCK_DIR\\\" \\t\\t\\\"$APACHE_RUN_DIR\\\" \\t\\t\\\"$APACHE_LOG_DIR\\\" \\t; do \\t\\trm -rvf \\\"$dir\\\"; \\t\\tmkdir -p \\\"$dir\\\"; \\t\\tchown \\\"$APACHE_RUN_USER:$APACHE_RUN_GROUP\\\" \\\"$dir\\\"; \\t\\tchmod 777 \\\"$dir\\\"; \\tdone; \\t\\trm 
-rvf /var/www/html/*; \\t\\tln -sfT /dev/stderr \\\"$APACHE_LOG_DIR/error.log\\\"; \\tln -sfT /dev/stdout \\\"$APACHE_LOG_DIR/access.log\\\"; \\tln -sfT /dev/stdout \\\"$APACHE_LOG_DIR/other_vhosts_access.log\\\"; \\tchown -R --no-dereference \\\"$APACHE_RUN_USER:$APACHE_RUN_GROUP\\\" \\\"$APACHE_LOG_DIR\\\"\", Size:45888628, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216378, CreatedBy:\"/bin/sh -c #(nop)  ENV APACHE_ENVVARS=/etc/apache2/envvars\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643216378, CreatedBy:\"/bin/sh -c #(nop)  ENV APACHE_CONFDIR=/etc/apache2\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215897, CreatedBy:\"/bin/sh -c set -eux; \\tmkdir -p \\\"$PHP_INI_DIR/conf.d\\\"; \\t[ ! -d /var/www/html ]; \\tmkdir -p /var/www/html; \\tchown www-data:www-data /var/www/html; \\tchmod 777 /var/www/html\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215896, CreatedBy:\"/bin/sh -c #(nop)  ENV PHP_INI_DIR=/usr/local/etc/php\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215895, CreatedBy:\"/bin/sh -c set -eux; \\tapt-get update; \\tapt-get install -y --no-install-recommends \\t\\t$PHPIZE_DEPS \\t\\tca-certificates \\t\\tcurl \\t\\txz-utils \\t; \\trm -rf /var/lib/apt/lists/*\", Size:227297969, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215875, CreatedBy:\"/bin/sh -c #(nop)  ENV PHPIZE_DEPS=autoconf \\t\\tdpkg-dev \\t\\tfile \\t\\tg++ \\t\\tgcc \\t\\tlibc-dev \\t\\tmake \\t\\tpkg-config \\t\\tre2c\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643215875, CreatedBy:\"/bin/sh -c set -eux; 
\\t{ \\t\\techo 'Package: php*'; \\t\\techo 'Pin: release *'; \\t\\techo 'Pin-Priority: -1'; \\t} > /etc/apt/preferences.d/no-debian-php\", Size:46, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643161259, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"bash\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1643161259, CreatedBy:\"/bin/sh -c #(nop) ADD file:c51141702f568a28a7e3e7a2748f5ead5754e32d7b1cf7ebc8f4326273d05206 in / \", Size:69273517, Comment:\"\"}}\n\n"
time="2022-02-21T09:15:12Z" level=debug msg="IMAGE INSTRUCTIONS:"
time="2022-02-21T09:15:12Z" level=debug msg="FROM scratch"
time="2022-02-21T09:15:12Z" level=debug msg="# new image"
time="2022-02-21T09:15:12Z" level=debug msg="ADD file:c51141702f568a28a7e3e7a2748f5ead5754e32d7b1cf7ebc8f4326273d05206 /"
time="2022-02-21T09:15:12Z" level=debug msg="CMD [\"bash\"]\n"
time="2022-02-21T09:15:12Z" level=debug msg="RUN set -eux; \t{ \t\techo 'Package: php*'; \t\techo 'Pin: release *'; \t\techo 'Pin-Priority: -1'; \t} > /etc/apt/preferences.d/no-debian-php"
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHPIZE_DEPS=autoconf \t\tdpkg-dev \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkg-config \t\tre2c"
time="2022-02-21T09:15:12Z" level=debug msg="RUN set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends \t\t$PHPIZE_DEPS \t\tca-certificates \t\tcurl \t\txz-utils \t; \trm -rf /var/lib/apt/lists/*"
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHP_INI_DIR=/usr/local/etc/php"
time="2022-02-21T09:15:12Z" level=debug msg="RUN set -eux; \tmkdir -p \"$PHP_INI_DIR/conf.d\"; \t[ ! -d /var/www/html ]; \tmkdir -p /var/www/html; \tchown www-data:www-data /var/www/html; \tchmod 777 /var/www/html"
time="2022-02-21T09:15:12Z" level=debug msg="ENV APACHE_CONFDIR=/etc/apache2"
time="2022-02-21T09:15:12Z" level=debug msg="ENV APACHE_ENVVARS=/etc/apache2/envvars"
time="2022-02-21T09:15:12Z" level=debug msg="RUN set -eux; \tapt-get update; \tapt-get install -y --no-install-recommends apache2; \trm -rf /var/lib/apt/lists/*; \t\tsed -ri 's/^export ([^=]+)=(.*)$/: ${\\1:=\\2}\\nexport \\1/' \"$APACHE_ENVVARS\"; \t\t. \"$APACHE_ENVVARS\"; \tfor dir in \t\t\"$APACHE_LOCK_DIR\" \t\t\"$APACHE_RUN_DIR\" \t\t\"$APACHE_LOG_DIR\" \t; do \t\trm -rvf \"$dir\"; \t\tmkdir -p \"$dir\"; \t\tchown \"$APACHE_RUN_USER:$APACHE_RUN_GROUP\" \"$dir\"; \t\tchmod 777 \"$dir\"; \tdone; \t\trm -rvf /var/www/html/*; \t\tln -sfT /dev/stderr \"$APACHE_LOG_DIR/error.log\"; \tln -sfT /dev/stdout \"$APACHE_LOG_DIR/access.log\"; \tln -sfT /dev/stdout \"$APACHE_LOG_DIR/other_vhosts_access.log\"; \tchown -R --no-dereference \"$APACHE_RUN_USER:$APACHE_RUN_GROUP\" \"$APACHE_LOG_DIR\""
time="2022-02-21T09:15:12Z" level=debug msg="RUN a2dismod mpm_event && \\\n\ta2enmod mpm_prefork"
time="2022-02-21T09:15:12Z" level=debug msg="RUN { \t\techo '<FilesMatch \\.php$>'; \t\techo '\\tSetHandler application/x-httpd-php'; \t\techo '</FilesMatch>'; \t\techo; \t\techo 'DirectoryIndex disabled'; \t\techo 'DirectoryIndex index.php index.html'; \t\techo; \t\techo '<Directory /var/www/>'; \t\techo '\\tOptions -Indexes'; \t\techo '\\tAllowOverride All'; \t\techo '</Directory>'; \t} | tee \"$APACHE_CONFDIR/conf-available/docker-php.conf\" && \\\n\ta2enconf docker-php"
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHP_LDFLAGS=-Wl,-O1 -pie"
time="2022-02-21T09:15:12Z" level=debug msg="ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD"   
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHP_VERSION=8.1.2"
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHP_URL=https://www.php.net/distributions/php-8.1.2.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.1.2.tar.xz.asc"
time="2022-02-21T09:15:12Z" level=debug msg="ENV PHP_SHA256=6b448242fd360c1a9f265b7263abf3da25d28f2b2b0f5465533b69be51a391dd"
time="2022-02-21T09:15:12Z" level=debug msg="RUN set -eux; \t\tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends gnupg dirmngr; \trm -rf /var/lib/apt/lists/*; \t\tmkdir -p /usr/src; \tcd /usr/src; \t\tcurl -fsSL -o php.tar.xz \"$PHP_URL\"; \t\tif [ -n \"$PHP_SHA256\" ]; then \t\techo \"$PHP_SHA256 *php.tar.xz\" | sha256sum -c -; \tfi; \t\tif [ -n \"$PHP_ASC_URL\" ]; then \t\tcurl -fsSL -o php.tar.xz.asc \"$PHP_ASC_URL\"; \t\texport GNUPGHOME=\"$(mktemp -d)\"; \t\tfor key in $GPG_KEYS; do \t\t\tgpg --batch --keyserver keyserver.ubuntu.com --recv-keys \"$key\"; \t\tdone; \t\tgpg --batch --verify php.tar.xz.asc php.tar.xz; \t\tgpgconf --kill all; \t\trm -rf \"$GNUPGHOME\"; \tfi; \t\tapt-mark auto '.*' > /dev/null; \tapt-mark manual $savedAptMark > /dev/null; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false"
time="2022-02-21T09:15:12Z" level=debug msg="COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 /usr/local/bin/"
time="2022-02-21T09:15:12Z" level=debug msg="RUN set -eux; \t\tsavedAptMark=\"$(apt-mark showmanual)\"; \tapt-get update; \tapt-get install -y --no-install-recommends \t\tapache2-dev \t\tlibargon2-dev \t\tlibcurl4-openssl-dev \t\tlibonig-dev \t\tlibreadline-dev \t\tlibsodium-dev \t\tlibsqlite3-dev \t\tlibssl-dev \t\tlibxml2-dev \t\tzlib1g-dev \t; \t\texport \t\tCFLAGS=\"$PHP_CFLAGS\" \t\tCPPFLAGS=\"$PHP_CPPFLAGS\" \t\tLDFLAGS=\"$PHP_LDFLAGS\" \t; \tdocker-php-source extract; \tcd /usr/src/php; \tgnuArch=\"$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)\"; \tdebMultiarch=\"$(dpkg-architecture --query DEB_BUILD_MULTIARCH)\"; \tif [ ! -d /usr/include/curl ]; then \t\tln -sT \"/usr/include/$debMultiarch/curl\" /usr/local/include/curl; \tfi; \t./configure \t\t--build=\"$gnuArch\" \t\t--with-config-file-path=\"$PHP_INI_DIR\" \t\t--with-config-file-scan-dir=\"$PHP_INI_DIR/conf.d\" \t\t\t\t--enable-option-checking=fatal \t\t\t\t--with-mhash \t\t\t\t--with-pic \t\t\t\t--enable-ftp \t\t--enable-mbstring \t\t--enable-mysqlnd \t\t--with-password-argon2 \t\t--with-sodium=shared \t\t--with-pdo-sqlite=/usr \t\t--with-sqlite3=/usr \t\t\t\t--with-curl \t\t--with-openssl \t\t--with-readline \t\t--with-zlib \t\t\t\t--with-pear \t\t\t\t$(test \"$gnuArch\" = 's390x-linux-gnu' && \\\n\techo '--without-pcre-jit') \t\t--with-libdir=\"lib/$debMultiarch\" \t\t\t\t--disable-cgi \t\t\t\t--with-apxs2 \t; \tmake -j \"$(nproc)\"; \tfind -type f -name '*.a' -delete; \tmake install; \tfind \t\t/usr/local \t\t-type f \t\t-perm '/0111' \t\t-exec sh -euxc ' \t\t\tstrip --strip-all \"$@\" || : \t\t' -- '{}' + \t; \tmake clean; \t\tcp -v php.ini-* \"$PHP_INI_DIR/\"; \t\tcd /; \tdocker-php-source delete; \t\tapt-mark auto '.*' > /dev/null; \t[ -z \"$savedAptMark\" ] || apt-mark manual $savedAptMark; \tfind /usr/local -type f -executable -exec ldd 
'{}' ';' \t\t| awk '/=>/ { print $(NF-1) }' \t\t| sort -u \t\t| xargs -r dpkg-query --search \t\t| cut -d: -f1 \t\t| sort -u \t\t| xargs -r apt-mark manual \t; \tapt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \trm -rf /var/lib/apt/lists/*; \t\tpecl update-channels; \trm -rf /tmp/pear ~/.pearrc; \t\tphp --version"
time="2022-02-21T09:15:12Z" level=debug msg="COPY multi:ee8b9bb4e448c5d38508b40a8ace77d14cf000229390e687b6d467283c9826e6 /usr/local/bin/"
time="2022-02-21T09:15:12Z" level=debug msg="RUN docker-php-ext-enable sodium"
time="2022-02-21T09:15:12Z" level=debug msg="ENTRYPOINT [\"docker-php-entrypoint\"]\n"
time="2022-02-21T09:15:12Z" level=debug msg="STOPSIGNAL SIGWINCH"
time="2022-02-21T09:15:12Z" level=debug msg="COPY file:e3123fcb6566efa979f945bfac1c94c854a559d7b82723e42118882a8ac4de66 /usr/local/bin/"
time="2022-02-21T09:15:12Z" level=debug msg="WORKDIR /var/www/html"
time="2022-02-21T09:15:12Z" level=debug msg="EXPOSE 80"
time="2022-02-21T09:15:12Z" level=debug msg="CMD [\"apache2-foreground\"]\n"
time="2022-02-21T09:15:12Z" level=debug msg="# end of image: php:8.1.2-apache-buster (id:  tags: php:8.1.2-apache-buster)"
time="2022-02-21T09:15:12Z" level=debug
time="2022-02-21T09:15:12Z" level=debug msg="# new image"
time="2022-02-21T09:15:12Z" level=debug msg="EXPOSE 8080"
time="2022-02-21T09:15:12Z" level=debug msg="COPY dir:b8f8ccdd30d9300ef46bd612a052e1fe85afb8c3c651d28fe3ebd536d5a6738b /var/www/html"
time="2022-02-21T09:15:12Z" level=debug msg="# end of image: trademark:latest (id:  tags: trademark:latest)"
time="2022-02-21T09:15:12Z" level=debug
cmd=build info=image.stack id='sha256:0ffb3d00524ae470972d812c218293206bfa7a6213b571e3d1dc0ad3883441f5' index='0' name='php:8.1.2-apache-buster'
cmd=build info=image.stack id='sha256:3fdccc862a7bbc4a2cdf55bcfd50637402cd9feba27a4f548a7a0ed30ed49980' index='1' name='trademark:latest'
cmd=build info=image.exposed_ports list='80,8080'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
time="2022-02-21T09:15:12Z" level=debug msg="FatContainerCmd - [docker-php-entrypoint apache2-foreground]" app=docker-slim command=build component=container.inspector
time="2022-02-21T09:15:12Z" level=info msg="starting instrumented 'fat' container..." app=docker-slim command=build
time="2022-02-21T09:15:12Z" level=debug msg="RunContainer: sensor (/usr/local/bin/docker-slim-sensor) perms => 0777" app=docker-slim command=build component=container.inspector        
time="2022-02-21T09:15:12Z" level=debug msg="dockerutil.HasVolume: volume not found - docker-slim-sensor.1.37.3-40-ga2b95b1"
time="2022-02-21T09:15:12Z" level=debug msg="ensureSensorVolume: no volume yet = docker-slim-sensor.1.37.3-40-ga2b95b1" app=docker-slim command=build component=container.inspector     
time="2022-02-21T09:15:12Z" level=debug msg="dockerutil.CreateVolumeWithData: volumeInfo = &{Name:docker-slim-sensor.1.37.3-40-ga2b95b1 Driver:local Mountpoint:/var/lib/docker/volumes/docker-slim-sensor.1.37.3-40-ga2b95b1/_data Labels:map[] Options:map[] CreatedAt:2022-02-21 09:15:12 +0000 UTC}"
time="2022-02-21T09:15:12Z" level=debug msg="dockerutil.CopyToVolume: containerID - e37ccdf3d51bfc5021e2fff48d8afe777d5829c9bf09a10a56b961455ab2c0fb"
time="2022-02-21T09:15:13Z" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{\"65501/tcp\":struct {}{}, \"65502/tcp\":struct {}{}}" app=docker-slim command=build component=container.inspector
cmd=build info=container status='created' name='dockerslimk_59_20220221091513' id='7e772281cc7ea8646e90195982e1072560f7b0e35696b29b1e8ba06aafd043b5'
time="2022-02-21T09:15:13Z" level=debug msg="version.Check: http status = 200 OK" app=docker-slim
cmd=build info=container name='dockerslimk_59_20220221091513' id='7e772281cc7ea8646e90195982e1072560f7b0e35696b29b1e8ba06aafd043b5' ip='172.17.0.3' status='running'
time="2022-02-21T09:15:13Z" level=debug msg="RunContainer: container HostConfig.NetworkMode => default len(ports)=4" app=docker-slim command=build component=container.inspector        
time="2022-02-21T09:15:13Z" level=debug msg="RunContainer: container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{\"65501/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49154\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49154\"}}, \"65502/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49153\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49153\"}}, \"80/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49156\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49156\"}}, \"8080/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"0.0.0.0\", HostPort:\"49155\"}, docker.PortBinding{HostIP:\"::\", HostPort:\"49155\"}}}" app=docker-slim command=build component=container.inspector
time="2022-02-21T09:15:13Z" level=debug msg=target.container.ipc.connect app=docker-slim command=build component=container.inspector container.network= in.container=true ipc.mode=direct op=container.Inspector.initContainerChannels port.cmd=65501 port.evt=65502 target=172.17.0.3
time="2022-02-21T09:15:13Z" level=debug msg="ipc.NewClient(172.17.0.3,65501,65502)"
time="2022-02-21T09:15:13Z" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2022-02-21T09:15:13Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.3:65501,15s) [time=1645434913430728692]"
time="2022-02-21T09:15:28Z" level=debug msg="channel.NewClient: (dial time = 15.000260414s) - connect error = dial tcp 172.17.0.3:65501: i/o timeout"
time="2022-02-21T09:15:28Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-21T09:15:30Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.3:65501,15s) [time=1645434930431179297]"
time="2022-02-21T09:15:45Z" level=debug msg="channel.NewClient: (dial time = 15.000395332s) - connect error = dial tcp 172.17.0.3:65501: i/o timeout"
time="2022-02-21T09:15:45Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-21T09:15:47Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.3:65501,15s) [time=1645434947431812171]"
time="2022-02-21T09:16:02Z" level=debug msg="channel.NewClient: (dial time = 15.000251438s) - connect error = dial tcp 172.17.0.3:65501: i/o timeout"
time="2022-02-21T09:16:02Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-21T09:16:04Z" level=debug msg="channel.NewClient: net.DialTimeout(tcp,172.17.0.3:65501,15s) [time=1645434964432358091]"
time="2022-02-21T09:16:19Z" level=debug msg="channel.NewClient: (dial time = 15.000357112s) - connect error = dial tcp 172.17.0.3:65501: i/o timeout"
time="2022-02-21T09:16:19Z" level=debug msg="channel.NewClient: waiting before trying to connect again..."
time="2022-02-21T09:16:21Z" level=debug msg="channel.NewClient: connect wait timeout (waited=1m8.002134011s)"
time="2022-02-21T09:16:21Z" level=error msg="channel.NewCommandClient: NewClient error = wait timeout"
time="2022-02-21T09:16:21Z" level=error msg="ipc.NewClient init error = wait timeout"
time="2022-02-21T09:16:21Z" level=debug msg="getting container logs => 7e772281cc7ea8646e90195982e1072560f7b0e35696b29b1e8ba06aafd043b5" app=docker-slim command=build component=container.inspector
docker-slim: container stdout:
docker-slim: container stderr:
time="2022-02-21T09:15:13Z" level=debug msg="sensor: uid=0 euid=0"
time="2022-02-21T09:15:13Z" level=debug msg="sensor: privileged => true"
time="2022-02-21T09:15:13Z" level=debug msg="sensor: active capabilities => map[string]struct {}{\"audit_control\":struct {}{}, \"audit_read\":struct {}{}, \"audit_write\":struct {}{}, \"block_suspend\":struct {}{}, \"chown\":struct {}{}, \"dac_override\":struct {}{}, \"dac_read_search\":struct {}{}, \"fowner\":struct {}{}, \"fsetid\":struct {}{}, \"ipc_lock\":struct {}{}, \"ipc_owner\":struct {}{}, \"kill\":struct {}{}, \"lease\":struct {}{}, \"linux_immutable\":struct {}{}, \"mac_admin\":struct {}{}, \"mac_override\":struct {}{}, \"mknod\":struct {}{}, \"net_admin\":struct {}{}, \"net_bind_service\":struct {}{}, \"net_broadcast\":struct {}{}, \"net_raw\":struct {}{}, \"setfcap\":struct {}{}, \"setgid\":struct {}{}, \"setpcap\":struct {}{}, \"setuid\":struct {}{}, \"sys_admin\":struct {}{}, \"sys_boot\":struct {}{}, \"sys_chroot\":struct {}{}, \"sys_module\":struct {}{}, \"sys_nice\":struct {}{}, \"sys_pacct\":struct {}{}, \"sys_ptrace\":struct {}{}, \"sys_rawio\":struct {}{}, \"sys_resource\":struct {}{}, \"sys_time\":struct {}{}, \"sys_tty_config\":struct {}{}, \"syslog\":struct {}{}, \"wake_alarm\":struct {}{}}"
time="2022-02-21T09:15:13Z" level=debug msg="sensor: max capabilities => map[string]struct {}{\"audit_control\":struct {}{}, \"audit_read\":struct {}{}, \"audit_write\":struct {}{}, \"block_suspend\":struct {}{}, \"chown\":struct {}{}, \"dac_override\":struct {}{}, \"dac_read_search\":struct {}{}, \"fowner\":struct {}{}, \"fsetid\":struct {}{}, \"ipc_lock\":struct {}{}, \"ipc_owner\":struct {}{}, \"kill\":struct {}{}, \"lease\":struct {}{}, \"linux_immutable\":struct {}{}, \"mac_admin\":struct {}{}, \"mac_override\":struct {}{}, \"mknod\":struct 
{}{}, \"net_admin\":struct {}{}, \"net_bind_service\":struct {}{}, \"net_broadcast\":struct {}{}, \"net_raw\":struct {}{}, \"setfcap\":struct {}{}, \"setgid\":struct {}{}, \"setpcap\":struct {}{}, \"setuid\":struct {}{}, \"sys_admin\":struct {}{}, \"sys_boot\":struct {}{}, \"sys_chroot\":struct {}{}, \"sys_module\":struct {}{}, \"sys_nice\":struct {}{}, \"sys_pacct\":struct {}{}, \"sys_ptrace\":struct {}{}, \"sys_rawio\":struct {}{}, \"sys_resource\":struct {}{}, \"sys_time\":struct {}{}, \"sys_tty_config\":struct {}{}, \"syslog\":struct {}{}, \"wake_alarm\":struct {}{}}"
time="2022-02-21T09:15:13Z" level=debug msg="sensor: sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"7e772281cc7e\", Release:\"5.4.0-1058-gcp\", Version:\"#62~18.04.1-Ubuntu SMP Mon Nov 15 07:49:04 UTC 2021\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Debian GNU/Linux\", Version:\"10\", DisplayName:\"Debian GNU/Linux 10 (buster)\"}}"
time="2022-02-21T09:15:13Z" level=debug msg="sensor: kernel flags => map[string]string(nil)"
time="2022-02-21T09:15:13Z" level=info msg="sensor: args => []string{\"/opt/dockerslim/bin/docker-slim-sensor\", \"-d\", \"-log-level\", \"warn\", \"-log-format\", \"text\"}"
time="2022-02-21T09:15:13Z" level=debug msg="sensor: cwd => \"/var/www/html\""
time="2022-02-21T09:15:13Z" level=debug msg="sensor: setting up channels..."
time="2022-02-21T09:15:13Z" level=debug msg="sensor: ipc.Server.Run()"
time="2022-02-21T09:15:13Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65502 [time=1645434913417186103]"
time="2022-02-21T09:15:13Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65501 [time=1645434913417353477]"
time="2022-02-21T09:15:13Z" level=info msg="sensor: waiting for commands..."
time="2022-02-21T09:15:13Z" level=debug msg="sensor: error collector - waiting for errors..."
time="2022-02-21T09:15:13Z" level=debug msg="channel.Server.Start.loop()... [time=1645434913417486988]"
time="2022-02-21T09:15:13Z" level=debug msg="channel.Server.Start.loop()... [time=1645434913417524701]"
time="2022-02-21T09:15:13Z" level=debug msg="sensor: ipc.Server.Run - waiting for done signal..."
time="2022-02-21T09:15:18Z" level=debug msg=.
time="2022-02-21T09:15:23Z" level=debug msg=.
time="2022-02-21T09:15:28Z" level=debug msg=.
time="2022-02-21T09:15:33Z" level=debug msg=.
time="2022-02-21T09:15:38Z" level=debug msg=.
time="2022-02-21T09:15:43Z" level=debug msg=.
time="2022-02-21T09:15:48Z" level=debug msg=.
time="2022-02-21T09:15:53Z" level=debug msg=.
time="2022-02-21T09:15:58Z" level=debug msg=.
time="2022-02-21T09:16:03Z" level=debug msg=.
time="2022-02-21T09:16:08Z" level=debug msg=.
time="2022-02-21T09:16:13Z" level=debug msg=.
time="2022-02-21T09:16:18Z" level=debug msg=.
docker-slim: end of container logs =============
cmd=build info=report file='slim.report.json'
time="2022-02-21T09:16:21Z" level=fatal msg="docker-slim: failure" error="wait timeout" stack="goroutine 1 [running]:\nruntime/debug.Stack(0xc00064d520, 0xf67794, 0xc00064d540)\n\truntime/debug/stack.go:24 +0x9f\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0x10ccda0, 0xc0002e9420)\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x54\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc0000ac7c0, 0x10ccda0, 0xc0002e9420)\n\tgithub.com/docker-slim/docker-slim/pkg/app/execontext.go:49 +0x3a\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(0xc0000ac7c0, 0xc000076230, 0x7ffe350ebef5, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:1039 +0x2fd5\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc0002b4f80, 0x7a, 0x100)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:633 +0x341d\ngithub.com/urfave/cli/v2.(*Command).Run(0x16ded80, 0xc0000a0f40, 0x0, 0x0)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x4ed\ngithub.com/urfave/cli/v2.(*App).RunContext(0xc0004701a0, 0x10e4700, 0xc000098010, 0xc000086080, 0x8, 0x8, 0x0, 0x0)\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0x81f\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfave/cli/[email protected]/app.go:224\ngithub.com/docker-slim/docker-slim/pkg/app/master.Run()\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/app.go:15 +0x6c\nmain.main()\n\tgithub.com/docker-slim/docker-slim/cmd/docker-slim/main.go:15 +0x54\n" version="linux|Transformer|1.37.3-40-ga2b95b1|a2b95b1dacc4c7a5e3d0175bdc34369ceeb409fb|2022-02-21_08:49:08AM"

pentium10 avatar Feb 21 '22 09:02 pentium10

@pentium10 can you double check what the docker host resolves to in your build environment... the main docker-slim app is trying to connect to 172.17.0.3. will be good to understand if it's the docker host ip or the temp container ip.

if you are using the latest code from master then you'll have the sensor-ipc-mode and sensor-ipc-endpoint build command flags, which might be useful here (eg, --sensor-ipc-mode proxy --sensor-ipc-endpoint docker if your docker host is docker or it can be set to the docker host's ip).

kcq avatar Feb 21 '22 17:02 kcq

cat /etc/hosts

127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.10.2    0a78ded4a15b

there is no docker host

time="2022-02-21T17:21:55Z" level=debug msg="channel.NewClient: (dial time = 72.953506ms) - connect error = dial tcp: lookup docker on 127.0.0.11:53: no such host"

ss -x -a returns empty table (it should display unix sockets )

ss -a

return this

Netid State     Recv-Q Send-Q Local Address:Port      Peer Address:Port Process
nl    UNCONN    0      0               rtnl:2078                  *
nl    UNCONN    0      0               rtnl:kernel                *
nl    UNCONN    4352   0            tcpdiag:ss/113                *
nl    UNCONN    768    0            tcpdiag:kernel                *
nl    UNCONN    0      0               xfrm:kernel                *
nl    UNCONN    0      0              audit:kernel                *
nl    UNCONN    0      0          fiblookup:kernel                *
nl    UNCONN    0      0                nft:kernel                *
nl    UNCONN    0      0             uevent:kernel                *
nl    UNCONN    0      0               genl:kernel                *
nl    UNCONN    0      0               rdma:kernel                *
udp   UNCONN    0      0         127.0.0.11:39884          0.0.0.0:*
tcp   LISTEN    0      4096      127.0.0.11:33827          0.0.0.0:*
tcp   TIME-WAIT 0      0       192.168.10.2:54308    91.189.88.152:http

ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.10.2  netmask 255.255.255.0  broadcast 192.168.10.255
        ether 02:42:c0:a8:0a:02  txqueuelen 0  (Ethernet)
        RX packets 328  bytes 1104843 (1.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 324  bytes 21881 (21.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4  bytes 371 (371.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 371 (371.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

actually, I am unable to find the docker hostname, can you guide how to find it out?

pentium10 avatar Feb 21 '22 17:02 pentium10

✅ apparently I have a good command to return the right IP host:

docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}';

this returns 172.17.0.1 and then when I use as

docker-slim build --sensor-ipc-mode proxy --sensor-ipc-endpoint 172.17.0.1 --http-probe-retry-count=1 --new-expose=8080 --http-probe-ports=8080 --http-probe-exec 'curl --connect-timeout=5 http://localhost:80/' trademark;

I am getting all sort of error with HTTP probe, but likely the IPC connection was established, but I don't know if that's true. Please advise. Remember I was able to run this container locally by testing the HTTP port on 8080:GET /

I see in the logs that instead of 8080, it tries to probe on 49195

the output is this:

docker-slim: message='join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
docker-slim: message='join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
docker-slim: message='Github discussions' info='https://github.com/docker-slim/docker-slim/discussions'
cmd=build info=param.http.probe message='using default probe'
cmd=build state=started
cmd=build info=params target.type='image' target='trademark' continue.mode='probe' rt.as.user='true' keep.perms='true' tags=''
cmd=build state=image.inspection.start
cmd=build info=image id='sha256:f6048f7763c80ced5163e69e14f83f7902880aefe4c421b34269121cca860e04' size.bytes='435631417' size.human='436 MB'
cmd=build info=image.stack index='0' name='php:8.1.2-apache-buster' id='sha256:0ffb3d00524ae470972d812c218293206bfa7a6213b571e3d1dc0ad3883441f5'     
cmd=build info=image.stack index='1' name='trademark:latest' id='sha256:f6048f7763c80ced5163e69e14f83f7902880aefe4c421b34269121cca860e04'
cmd=build info=image.exposed_ports list='80,8080'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
cmd=build info=container id='15605331c2e14ba227f8f0dbde1ff39ffb559f6ff641caef6cf489df44caa108' status='created' name='dockerslimk_29_20220221201313' 
cmd=build info=container id='15605331c2e14ba227f8f0dbde1ff39ffb559f6ff641caef6cf489df44caa108' ip='172.17.0.3' status='running' name='dockerslimk_29_20220221201313'
cmd=build info=cmd.startmonitor status='sent'
cmd=build info=event.startmonitor.done status='received' 
cmd=build info=container name='dockerslimk_29_20220221201313' id='15605331c2e14ba227f8f0dbde1ff39ffb559f6ff641caef6cf489df44caa108' target.port.list='49155,49156' target.port.info='8080/tcp => 0.0.0.0:49155,80/tcp => 0.0.0.0:49156' message='YOU CAN USE THESE PORTS TO INTERACT WITH THE CONTAINER'  
cmd=build state=http.probe.starting message=WAIT FOR HTTP PROBE TO FINISH
cmd=build info=continue.after mode='probe' message='no input required, execution will resume when HTTP probing is completed'
cmd=build prompt='waiting for the HTTP probe to finish'
cmd=build state=http.probe.running
cmd=build info=http.probe.ports count='1' targets='49155'
cmd=build info=http.probe.commands count='1' commands='GET /'
cmd=build info=http.probe.call error='Get "http://172.17.0.1:49155/": EOF' time='2022-02-21T20:13:26Z' status='error' method='GET' target='http://172.17.0.1:49155/' attempt='1'
cmd=build info=http.probe.summary total='1' failures='1' successful='0' 
cmd=build state=http.probe.done warning=no.successful.calls
cmd=build error=probe.error message='no.successful.calls'
docker-slim: container stdout:
docker-slim: container stderr:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
[Mon Feb 21 20:13:15.952021 2022] [mpm_prefork:notice] [pid 14] AH00163: Apache/2.4.38 (Debian) PHP/8.1.2 configured -- resuming normal operations   
[Mon Feb 21 20:13:15.952551 2022] [core:notice] [pid 14] AH00094: Command line: 'apache2 -D FOREGROUND'
docker-slim: end of container logs =============
cmd=build state=exited code=-1
cmd=build info=container.inspector.cleanup name='dockerslimk_29_20220221201313' id='15605331c2e14ba227f8f0dbde1ff39ffb559f6ff641caef6cf489df44caa108'
cmd=build state=container.target.shutdown.start
cmd=build state=container.target.shutdown.done
cmd=build info=report file='slim.report.json'
docker-slim: message='join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
docker-slim: message='join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
docker-slim: message='Github discussions' info='https://github.com/docker-slim/docker-slim/discussions'
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 255

in the log we can see that Apache is telling that uses 172.17.0.3 as hostname, but still docker-slim wants to use probe on http://172.17.0.1. Something is odd here.

apparently, I see some odd behavior:

--http-probe-retry-count=1 --new-expose=8080 --http-probe-ports=8080

based on the documentation page

--http-probe-ports - Explicit list of ports to probe (in the order you want them to be probed; excluded ports are not probed!)

I expected to use the ports in the order I want so probe on 8080, and it doesn't probe on 8080, still it starts with 80.

if I remove --http-probe-ports, then it will start to probe on 80 after a while, and builds the reduced container with SUCCESS,

but I cannot explain why somethings picks only 1 and other times 2 ports to be used:

cmd=build info=container target.port.info='80/tcp => 0.0.0.0:49156,8080/tcp => 0.0.0.0:49155' message='YOU CAN USE THESE PORTS TO INTERACT WITH THE CONTAINER' name='dockerslimk_29_20220221202913' id='115ecb95b579e1fb295e19a0e40b1bc47b5ba4b3eb783951270985634577dce3' target.port.list='49156,49155'  
cmd=build state=http.probe.starting message=WAIT FOR HTTP PROBE TO FINISH
cmd=build info=continue.after mode='probe' message='no input required, execution will resume when HTTP probing is completed'
cmd=build prompt='waiting for the HTTP probe to finish'
cmd=build state=http.probe.running
cmd=build info=http.probe.ports count='2' targets='49155,49156'

anyway, at least I am happy that it runs successfully by running this command:

docker-slim build --sensor-ipc-mode proxy --sensor-ipc-endpoint 172.17.0.1 --http-probe-ports=80 trademark;

pentium10 avatar Feb 21 '22 20:02 pentium10

@pentium10 great Cloud Build research! thank you for sharing your learnings!

Depending on how the Docker environment is setup and how they isolate the Docker components the main app in docker-slim would either need to point to the temp container directly or it would need to point to the docker daemon.

With Cloud Build you'll need to point to the docker daemon, which happens to be 172.17.0.1. The docker daemon then forwards the calls to the temp container (which is 172.17.0.3). This is similar to what happens in a desktop environment where you try to interact with the containers you start. The main gotcha/difference here is that it happens in Docker or another container environment. docker-slim detects if it runs containerized but it doesn't know if it's a normal containerized setup or if it's docker-in-docker when it's trying to figure out how to connect to the sensor in the temp container.

If you need to have the right host in the requests DS generates in its http probes then you can create a custom http probe that sets the 'Host' request header.

I assume there's some kind of env var for Apache to tell it to use a specific host name value. You can pass it to docker-slim using the --env flag.

Need to repro the port behavior with http-probe-ports... Could be a bug. If container exposes 80 and 8080 and then you run DS with --http-probe-ports=8080 you should only see http probe requests to 8080.

kcq avatar Feb 21 '22 23:02 kcq

Yesterday I was tired after so many attempts, today looking fresh at the --http-probe-ports=8080 it works OK. I had messed with the base container not exposing some ports.

✅ the final Cloud Build command that works is:

docker-slim build --sensor-ipc-mode proxy --sensor-ipc-endpoint $(docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}' | cut -f1) trademark;

➜ Question 1: docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}'; are you intend to use the above to find out the IPC communication? As far I am reading this is now an universal way to get the IP with tools that exists on these environments.

➜ Question 2: As there are many many build environments, and 99% of the people who would need docker-slim are running already a CI/CD pipeline, they need to engineer docker-slim in the pipeline. The environment can be really messy or an unknown black box. Can you develop a tool, or part of the docker-slim utility, that will eventually try and attempt all the known ways to figure out the best way to connect with the IPC. I envision a tool that will just try a bunch of various methods, and will run through them, and eventually report which one is having a success, this way who are on Gitlab CI, or Cloud Build or whatever black box system would be able to use this tool to figure out their settings.

➜ Question 3: When do we expect a new release with the IPC options? I am preparing an article about my findings and would love to use a final version, not a master build.

pentium10 avatar Feb 22 '22 08:02 pentium10

@pentium10 yes, working on improving the ipc target detection logic (there's a PR right now that deals with some parts of it).

For 2 i'll be good to have well documented instructions for each environment. Right now there's a couple of notes for GitlabCI and CircleCI and the GitlabCI notes need to be updated. Creating a tool or a sub-command will be nice too (will be more complicated though).

The new release should happen any time... Need to make sure the latest PR is ok and it requires extra testing.

By the way, do you might sharing your Cloud Build config, so it can be used as an example and for future testing.

kcq avatar Feb 24 '22 02:02 kcq

once the new release is out, I will test fully and then I will share the Cloud Build config, also I have an article prepared of this, so we can reference that as well

pentium10 avatar Feb 27 '22 18:02 pentium10

@pentium10 here it is https://github.com/docker-slim/docker-slim/releases/tag/1.37.4

Try docker-slim build --sensor-ipc-mode proxy --http-probe-retry-count=1 --new-expose=8080 --http-probe-ports=8080 --http-probe-exec 'curl --connect-timeout=5 http://localhost:80/' trademark; (without using --sensor-ipc-endpoint explicitly)

kcq avatar Feb 28 '22 23:02 kcq

Just wanted to chime in that I had the exact same issue as the original poster and it turned out I had an active Tailscale exit node. Disabled that and everything was working once again.

usrme avatar Nov 14 '22 08:11 usrme

@usrme thanks for sharing your discovery!

kcq avatar Nov 14 '22 15:11 kcq