slim icon indicating copy to clipboard operation
slim copied to clipboard

Podman support?

Open ewoks opened this issue 3 years ago • 27 comments

Any guide on how to use it with podman instead of docker?

ewoks avatar Jan 20 '22 18:01 ewoks

You can try symlinking /run/podman/podman.sock to /var/run/docker.sock. You may already have it if you installed additional podman packages (e.g., podman-docker). The v2 REST API in Podman should expose Docker compatible endpoints (haven't tested it though).

kcq avatar Jan 21 '22 01:01 kcq

It doesn't work. I try also with docker-slim --host unix:///run/user/1000/podman/podman.sock

docker-slim --host unix:///run/user/1000/podman/podman.sock build --target nexus.lutech.it:5050/a2a/piattaforma-modelli-map/python-base/python-base-python27:1.0.0

cmd=build info=param.http.probe message='using default probe' 
cmd=build state=started
cmd=build info=params target.type='image' target='nexus.lutech.it:5050/a2a/piattaforma-modelli-map/python-base/python-base-python27:1.0.0' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' 
cmd=build state=image.inspection.start

time="2022-02-01T17:30:08+01:00" level=fatal msg="docker-slim: failure" error="no such image" stack="goroutine 1 [running]:
runtime/debug.Stack(0xecd150, 0xc000616338, 0x794b6e)
	runtime/debug/stack.go:24 +0x9f
github.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0xfca5e0, 0xc000075d70)
	github.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x54
github.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc000703400, 0xfca5e0, 0xc000075d70)
	github.com/docker-slim/docker-slim/pkg/app/execontext.go:43 +0x3a
github.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(0xc000703400, 0xc000094500, 0x7fff98a65935, 0x57, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	github.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:622 +0x171a
github.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc000516b00, 0xc00053f000, 0xc00053f6f0)
	github.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:629 +0x321b
github.com/urfave/cli.HandleAction(0xd2e100, 0xeca9b0, 0xc000516b00, 0xc000516b00, 0x0)
	github.com/urfave/[email protected]/app.go:526 +0xfd
github.com/urfave/cli.Command.Run(0xe824d9, 0x5, 0x0, 0x0, 0x1564aa0, 0x1, 0x1, 0xebe395, 0x6c, 0x0, ...)
	github.com/urfave/[email protected]/command.go:174 +0x58e
github.com/urfave/cli.(*App).Run(0xc000708000, 0xc0000301e0, 0x6, 0x6, 0x0, 0x0)
	github.com/urfave/[email protected]/app.go:279 +0x7e8
github.com/docker-slim/docker-slim/pkg/app/master.Run()
	github.com/docker-slim/docker-slim/pkg/app/master/app.go:15 +0x54
main.main()
	github.com/docker-slim/docker-slim/cmd/docker-slim/main.go:8 +0x25
" version="linux|Transformer|1.37.3|97eb3c8c7f8c4e295a26c13882feb3f0539ab50f|2021-12-10_09:37:29AM"

Please note that the image is shown if I run the command in interactive mode. I try also with root access with no luck

Danipiario avatar Feb 01 '22 16:02 Danipiario

Upvoting this, would be a great feature to support other container cli like podman and nerdctl

seanogor avatar Mar 12 '22 11:03 seanogor

Please note that the image is shown if I run the command in interactive mode.

The API Podman exposes probably isn't 100% compatible. Setting the global log-level flag to trace might produce useful clues: docker-slim --log-level=trace --host unix:///run/user/1000/podman/podman.sock build --target nexus.lutech.it:5050/a2a/piattaforma-modelli-map/python-base/python-base-python27:1.0.0

kcq avatar Mar 15 '22 01:03 kcq

This is the output with trace

docker-slim --log-level=trace --host unix:///run/user/1000/podman/podman.sock build --target nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0
time="2022-03-15T12:34:37+01:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"ICT210032\", Release:\"5.13.0-35-generic\", Version:\"#40-Ubuntu SMP Mon Mar 7 08:03:10 UTC 2022\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Ubuntu\", Version:\"21.10\", DisplayName:\"Ubuntu 21.10\"}}"
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-03-15T12:34:37+01:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=docker-slim command=build
time="2022-03-15T12:34:37+01:00" level=debug msg="docker-slim: new Docker client (env) [5]"
cmd=build state=started
cmd=build info=params target.type='image' target='nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' 
time="2022-03-15T12:34:37+01:00" level=info msg="image=nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0 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 state=image.inspection.start
time="2022-03-15T12:34:37+01:00" level=info msg="inspecting 'fat' image metadata..." app=docker-slim command=build
time="2022-03-15T12:34:38+01:00" level=debug msg="version.Check: http status = 200 OK" app=docker-slim
time="2022-03-15T12:34:45+01:00" level=info msg="could not find target image in the image list"
time="2022-03-15T12:34:45+01:00" level=fatal msg="docker-slim: failure" error="no such image" stack="goroutine 1 [running]:\nruntime/debug.Stack(0x203000, 0x203000, 0x203000)\n\truntime/debug/stack.go:24 +0x9f\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0xfca5e0, 0xc000075ef0)\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x54\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc0005bf440, 0xfca5e0, 0xc000075ef0)\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(0xc0005bf440, 0xc0005ac230, 0x7ffd02b70979, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:622 +0x171a\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc0005c8160, 0xc0004c9000, 0xc0004c96f0)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:629 +0x321b\ngithub.com/urfave/cli.HandleAction(0xd2e100, 0xeca9b0, 0xc0005c8160, 0xc0005c8160, 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(0xc0005a6000, 0xc000030070, 0x7, 0x7, 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"

Danipiario avatar Mar 15 '22 11:03 Danipiario

Could we share this with podman community, i think the ethos of dockerslim would work... perhaps a fork of dockerslim called ocislim/podmanslim would broaden interest in the tool

On Tue, 15 Mar 2022, 11:36 Daniele Pirola, @.***> wrote:

This is the output with trace

docker-slim --log-level=trace --host unix:///run/user/1000/podman/podman.sock build --target nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0 time= http://nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0time="2022-03-15T12:34:37+01:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:"Linux", Nodename:"ICT210032", Release:"5.13.0-35-generic", Version:"#40-Ubuntu SMP Mon Mar 7 08:03:10 UTC 2022", Machine:"x86_64", Domainname:"(none)", OsBuild:"", Distro:system.DistroInfo{Name:"Ubuntu", Version:"21.10", DisplayName:"Ubuntu 21.10"}}" 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-03-15T12:34:37+01:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=docker-slim command=build time="2022-03-15T12:34:37+01:00" level=debug msg="docker-slim: new Docker client (env) [5]" cmd=build state=started cmd=build info=params target.type='image' target='nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' time="2022-03-15T12:34:37+01:00" level=info msg="image=nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0 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 state=image.inspection.start time="2022-03-15T12:34:37+01:00" level=info msg="inspecting 'fat' image metadata..." app=docker-slim command=build time="2022-03-15T12:34:38+01:00" level=debug msg="version.Check: http status = 200 OK" app=docker-slim time="2022-03-15T12:34:45+01:00" level=info msg="could not find target image in the image list" time="2022-03-15T12:34:45+01:00" level=fatal msg="docker-slim: failure" error="no such image" stack="goroutine 1 [running]:\nruntime/debug.Stack(0x203000, 0x203000, 0x203000)\n\truntime/debug/stack.go:24 +0x9f\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0xfca5e0, 0xc000075ef0)\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x54\ngithub.com/docker-slim/docker-slim/pkg/app.(ExecutionContext).FailOn(0xc0005bf440, 0xfca5e0, 0xc000075ef0)\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(0xc0005bf440, 0xc0005ac230, 0x7ffd02b70979, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:622 +0x171a\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc0005c8160, 0xc0004c9000, 0xc0004c96f0)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:629 +0x321b\ngithub.com/urfave/cli.HandleAction(0xd2e100, 0xeca9b0, 0xc0005c8160, 0xc0005c8160, @./app.go:526 +0xfd\ngithub.com/urfave/cli.Command.Run(0xe824d9, 0x5, 0x0, 0x0, 0x1564aa0, 0x1, 0x1, 0xebe395, 0x6c, 0x0, ...@./command.go:174 +0x58e\ngithub.com/urfave/cli.(App).Run(0xc0005a6000, 0xc000030070, 0x7, 0x7, 0x0, @.*/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 http://ngithub.com/docker-slim/docker-slim/pkg/app/master.Run()%5Cn%5Ctgithub.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"

— Reply to this email directly, view it on GitHub https://github.com/docker-slim/docker-slim/issues/278#issuecomment-1067887540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB74KG7O3LXAIMBWUN6DXRDVABY4BANCNFSM5MNOUVCQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

seanogor avatar Mar 15 '22 11:03 seanogor

This is the output with trace

This is pretty helpful though more debugging info will be necessary to root cause it (adding it and it'll be available in the upcoming release... coming out soon). Looks like the podman's API has unexpected/inconsistent image ID values in different API calls.

kcq avatar Mar 15 '22 22:03 kcq

@Danipiario can you try again with the latest release (to see what kind of logs we get this time) https://github.com/docker-slim/docker-slim/releases/tag/1.37.5

kcq avatar Mar 22 '22 06:03 kcq

This is the output with the latest version:

$ docker-slim --log-level=trace build --target nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0
time="2022-03-22T12:03:08+01:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"ICT210032\", Release:\"5.13.0-35-generic\", Version:\"#40-Ubuntu SMP Mon Mar 7 08:03:10 UTC 2022\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Ubuntu\", Version:\"21.10\", DisplayName:\"Ubuntu 21.10\"}}"
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'
time="2022-03-22T12:03:08+01:00" level=debug msg="param.error.app.options - no app params"
cmd=build info=param.http.probe message='using default probe' 
time="2022-03-22T12:03:08+01:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=docker-slim command=build
time="2022-03-22T12:03:08+01:00" level=debug msg="docker-slim: new Docker client (env) [5]"
cmd=build state=started
cmd=build info=params target.type='image' target='nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' 
time="2022-03-22T12:03:08+01:00" level=info msg="image=nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0 http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (false) cmd=[] (false) workdir='' env=[] expose=map[]" app=docker-slim command=build
time="2022-03-22T12:03:08+01:00" level=trace msg="image.inspector.NoImage: ImageRef=nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0 ImageIdentity=&dockerutil.ImageIdentity{ID:\"sha256:6f96b5bfb08dbaadc37c73d32ce164dec0c62761a1f947de9fce44ee0557b6ca\", ShortTags:[]string(nil), RepoTags:[]string{\"nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0\"}, ShortDigests:[]string{\"sha256:836e1efead1b6baf7eeabf0d0fad4f3b92b417406723e4825c7127978880ce50\"}, RepoDigests:[]string{\"nexus.lutech.it:5000/devops_utilities/jenkins/agent-base@sha256:836e1efead1b6baf7eeabf0d0fad4f3b92b417406723e4825c7127978880ce50\"}}"
time="2022-03-22T12:03:08+01:00" level=trace msg="targetRef=nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0 ii.ImageRef=nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0" app=docker-slim command=build
cmd=build state=image.inspection.start
time="2022-03-22T12:03:08+01:00" level=info msg="inspecting 'fat' image metadata..." app=docker-slim command=build
time="2022-03-22T12:03:08+01:00" level=trace msg="image.Inspector.Inspect: ImageInfo=&docker.Image{ID:\"sha256:6f96b5bfb08dbaadc37c73d32ce164dec0c62761a1f947de9fce44ee0557b6ca\", RepoTags:[]string{\"nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0\"}, Parent:\"\", Comment:\"\", Created:time.Time{wall:0x18ab1dfb, ext:63782505195, loc:(*time.Location)(nil)}, Container:\"\", ContainerConfig:docker.Config{Hostname:\"\", Domainname:\"\", User:\"\", Memory:0, MemorySwap:0, MemoryReservation:0, KernelMemory:0, CPUShares:0, CPUSet:\"\", PortSpecs:[]string(nil), ExposedPorts:map[docker.Port]struct {}(nil), PublishService:\"\", StopSignal:\"\", StopTimeout:0, Env:[]string(nil), Cmd:[]string(nil), Shell:[]string(nil), Healthcheck:(*docker.HealthConfig)(nil), DNS:[]string(nil), Image:\"\", Volumes:map[string]struct {}(nil), VolumeDriver:\"\", WorkingDir:\"\", MacAddress:\"\", Entrypoint:[]string(nil), SecurityOpts:[]string(nil), OnBuild:[]string(nil), Mounts:[]docker.Mount(nil), Labels:map[string]string(nil), AttachStdin:false, AttachStdout:false, AttachStderr:false, ArgsEscaped:false, Tty:false, OpenStdin:false, StdinOnce:false, NetworkDisabled:false, VolumesFrom:\"\"}, DockerVersion:\"\", Author:\"\", Config:(*docker.Config)(0xc00000a3c0), Architecture:\"amd64\", Size:1625615345, VirtualSize:1625615345, RepoDigests:[]string{\"nexus.lutech.it:5000/devops_utilities/jenkins/agent-base@sha256:836e1efead1b6baf7eeabf0d0fad4f3b92b417406723e4825c7127978880ce50\"}, RootFS:(*docker.RootFS)(0xc00062cb70), OS:\"linux\"}"
time="2022-03-22T12:03:09+01:00" level=info msg="could not find target image in the image list"
time="2022-03-22T12:03:09+01:00" level=debug msg="report.saveInfo - overriding command report file path to /tmp/slim.report.json"
cmd=build info=report file='/tmp/slim.report.json' 
time="2022-03-22T12:03:09+01:00" level=fatal msg="docker-slim: failure" error="no such image" stack="goroutine 1 [running]:\nruntime/debug.Stack(0xc00046a300, 0xf658f4, 0xc000038660)\n\truntime/debug/stack.go:24 +0x9f\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn(0x10cb3c0, 0xc000075f30)\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x54\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc00000d240, 0x10cb3c0, 0xc000075f30)\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(0xc00000d240, 0xc0003bc300, 0x7ffe1f4ca956, 0x3e, 0x0, 0x0, 0x1748a78, 0x0, 0x0, 0x0, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:701 +0x18da\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc00055d4c0, 0x86, 0x130)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:662 +0x3688\ngithub.com/urfave/cli/v2.(*Command).Run(0x16dee00, 0xc0003225c0, 0x0, 0x0)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x4ed\ngithub.com/urfave/cli/v2.(*App).RunContext(0xc0004d4000, 0x10e2d20, 0xc0000340c8, 0xc0000300a0, 0x5, 0x5, 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.5|86fbd29ab3549fa564e87e4770178480cb0542d3|2022-03-21_06:10:20AM"

This is the '/tmp/slim.report.json'

{
  "version": "1.0",
  "engine": "linux|Transformer|1.37.5|86fbd29ab3549fa564e87e4770178480cb0542d3|2022-03-21_06:10:20AM",
  "containerized": false,
  "host_distro": {
    "name": "Ubuntu",
    "version": "21.10",
    "display_name": "Ubuntu 21.10"
  },
  "type": "build",
  "state": "error",
  "target_reference": "nexus.lutech.it:5000/devops_utilities/jenkins/agent-base:1.0.0",
  "system": {
    "type": "",
    "release": "",
    "distro": {
      "name": "",
      "version": "",
      "display_name": ""
    }
  },
  "source_image": {
    "identity": {
      "id": ""
    },
    "size": 0,
    "size_human": "",
    "create_time": "",
    "docker_version": "",
    "architecture": "",
    "container_entry": {
      "exe_path": ""
    }
  },
  "minified_image_size": 0,
  "minified_image_size_human": "",
  "minified_image": "",
  "minified_image_has_data": false,
  "minified_by": 0,
  "artifact_location": "",
  "container_report_name": "",
  "seccomp_profile_name": "",
  "apparmor_profile_name": "",
  "image_stack": null
}

Danipiario avatar Mar 22 '22 11:03 Danipiario

Narrowed it down to the ListImages API. I'll update the issue once a new version is available.

kcq avatar Mar 26 '22 23:03 kcq

Hello, I'm using manjaro distro on raspberry pi 4 and I'm trying to use this tool with podman, but with any command I try to run (the ones listed here or even docker-slim by its own) I always get this error:

docker-slim: info=docker.connect.error message='missing Docker connection info'
docker-slim: state=exited version=linux|Transformer|1.37.6|26a36c88a94c677efd734e874ba081dabb84a224|2022-04-23_06:03:56AM location='/home/roberto/.local/bin'

It is the same if I start it from root. I have already installed podman-docker package which provide the link mentioned at beginning:

❯ ll /var/run/docker.sock
lrwxrwxrwx 1 root root 23 19 mar 00.54 /var/run/docker.sock -> /run/podman/podman.sock

Am I missing something?

rcasta74 avatar Apr 28 '22 11:04 rcasta74

I got past this part by enabling the podman socket unit:

$ systemctl --user enable --now podman.socket

Now I get a permissions error related to fanotify:

SensorError{Op:sensor.fanotify.Run/fanapi.Initialize,Kind:call.error,Wrapped:{Type=syscall.Errno,Info=operation not permitted,Line:43,File:/builddir/build/BUILD/docker-slim-1.36.4/_build/src/github.com/docker-slim/docker-slim/pkg/app/sensor/monitors/fanotify/monitor.go}}

jchristi avatar Aug 31 '22 12:08 jchristi

@jchristi what's the architecture of the machine where you are running it? is it arm or amd?

kcq avatar Aug 31 '22 13:08 kcq

@kcq x86_64

jchristi avatar Sep 02 '22 13:09 jchristi

Latest stable version (slim version linux | Transformer| 1.40.0| a4bb798922820523fceedb9121f5bcfdfc9f2901| 2023-01-15_09:42:23PM) got an error:

slim --log-level=trace  build quay.io/centos/centos:7                                                  ✘ INT 16:32:03
time="2023-02-07T16:32:08+01:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"pav-x1\", Release:\"6.2.0-0.rc6.44.fc38.x86_64\", V
ersion:\"#1 SMP PREEMPT_DYNAMIC Mon Jan 30 16:48:03 UTC 2023\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Fedora
Linux\", Version:\"37\", DisplayName:\"Fedora Linux 37 (KDE Plasma)\"}}"
app='slim' message='Join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
app='slim' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
app='slim' message='GitHub Discussions' info='https://github.com/docker-slim/docker-slim/discussions'
time="2023-02-07T16:32:08+01:00" level=debug msg="param.error.app.options - no app params"
cmd=build info=param.http.probe message='using default probe'
time="2023-02-07T16:32:08+01:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=slim command=build
time="2023-02-07T16:32:08+01:00" level=debug msg="docker-slim: new Docker client (env) [5]"
cmd=build state=started
cmd=build info=params target='quay.io/centos/centos:7' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' target.type='image'
time="2023-02-07T16:32:08+01:00" level=info msg="image=quay.io/centos/centos:7 http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (
false) cmd=[] (false) workdir='' env=[] expose=map[]" app=slim command=build
time="2023-02-07T16:32:08+01:00" level=trace msg="image.inspector.NoImage: ImageRef=quay.io/centos/centos:7 ImageIdentity=&dockerutil.ImageIdentity{ID:\"sha256:
8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", ShortTags:[]string{\"7\"}, RepoTags:[]string{\"quay.io/centos/centos:7\"}, ShortDigests:[]st
ring{\"sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb2
6d14bf974193579039d5573fb2348664deef76e\"}}"
time="2023-02-07T16:32:08+01:00" level=trace msg="targetRef=quay.io/centos/centos:7 ii.ImageRef=quay.io/centos/centos:7" app=slim command=build
cmd=build state=image.inspection.start
time="2023-02-07T16:32:08+01:00" level=info msg="inspecting 'fat' image metadata..." app=slim command=build
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: ImageInfo=&docker.Image{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe17
86712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Parent:\"\", Comment:\"\", Created:time.Date(2020, time.November, 14, 0, 20, 4, 644613188, ti
me.UTC), Container:\"\", ContainerConfig:docker.Config{Hostname:\"8652b9f0cb4\", Domainname:\"\", User:\"\", Memory:0, MemorySwap:0, MemoryReservation:0, Kernel
Memory:0, CPUShares:0, CPUSet:\"\", PortSpecs:[]string(nil), ExposedPorts:map[docker.Port]struct {}(nil), PublishService:\"\", StopSignal:\"\", StopTimeout:0, E
nv:[]string(nil), Cmd:[]string(nil), Shell:[]string(nil), Healthcheck:(*docker.HealthConfig)(nil), DNS:[]string(nil), Image:\"\", Volumes:map[string]struct {}(n
il), VolumeDriver:\"\", WorkingDir:\"\", MacAddress:\"\", Entrypoint:[]string(nil), SecurityOpts:[]string(nil), OnBuild:[]string(nil), Mounts:[]docker.Mount(nil
), Labels:map[string]string(nil), AttachStdin:false, AttachStdout:false, AttachStderr:false, ArgsEscaped:false, Tty:false, OpenStdin:false, StdinOnce:false, Net
workDisabled:false, VolumesFrom:\"\"}, DockerVersion:\"19.03.12\", Author:\"\", Config:(*docker.Config)(0xc0003f6000), Architecture:\"amd64\", Size:211689189, V
irtualSize:211689189, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RootFS:(*docker.R
ootFS)(0xc000564180), OS:\"linux\"}"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: imageList.size=7"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record
=docker.APIImages{ID:\"sha256:b5000783c663377c04e361848695f362f40d084705c25dde891714ea3d03340b\", RepoTags:[]string{\"docker.io/openspeedtest/latest:latest\"},
Created:1675161603, Size:107128032, VirtualSize:107128032, ParentID:\"\", RepoDigests:[]string{\"docker.io/openspeedtest/latest@sha256:056a7cb42fa2f422a7b66fb23
c30e3bb464346c57cd42072fbf32f04069d3322\", \"docker.io/openspeedtest/latest@sha256:f134419a93c0b3dfd408d075690367a33765a423df9c7e92883ed24eddfbdb7f\"}, Labels:m
ap[string]string{\"maintainer\":\"OpenSpeedTest.com <[email protected]>\"}}"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record
=docker.APIImages{ID:\"sha256:0843f949a4dbeba6bb4bb313c272ae2ef57651a9569aac271fe3bba2130e10b0\", RepoTags:[]string{\"quay.io/centos/centos:stream9\"}, Created:
1674637041, Size:160111770, VirtualSize:160111770, ParentID:\"\", RepoDigests:[]string{\"quay.io/centos/centos@sha256:2599aad36b178e108586ab2a9220d6fd9bb31a597a
08f137566dbdd27405e929\", \"quay.io/centos/centos@sha256:6041c3c1a38b97b0c78d2c29a9a3d4f83aaa43eb160b4dda3a2abd29232955be\"}, Labels:map[string]string{\"io.buil
dah.version\":\"1.19.8\", \"org.label-schema.build-date\":\"20230125\", \"org.label-schema.license\":\"GPLv2\", \"org.label-schema.name\":\"CentOS Stream 9 Base
 Image\", \"org.label-schema.schema-version\":\"1.0\", \"org.label-schema.vendor\":\"CentOS\"}}"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record
=docker.APIImages{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Created:160531
3204, Size:211689189, VirtualSize:211689189, ParentID:\"\", RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573
fb2348664deef76e\"}, Labels:map[string]string{\"org.label-schema.build-date\":\"20201113\", \"org.label-schema.license\":\"GPLv2\", \"org.label-schema.name\":\"
CentOS Base Image\", \"org.label-schema.schema-version\":\"1.0\", \"org.label-schema.vendor\":\"CentOS\", \"org.opencontainers.image.created\":\"2020-11-13 00:0
0:00+00:00\", \"org.opencontainers.image.licenses\":\"GPL-2.0-only\", \"org.opencontainers.image.title\":\"CentOS Base Image\", \"org.opencontainers.image.vendo
r\":\"CentOS\"}}"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs(,sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf)"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - statePrefix=/usr/local/bin appDir=/usr/local/bin badPath=/usr/local/bin"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - overriding state path to /tmp/slim-state"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - statePrefix=/tmp/slim-state appDir=/usr/local/bin badPath=/usr/local/bin"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - copying sensor to state path (to /tmp/slim-state)"
time="2023-02-07T16:32:08+01:00" level=debug msg="CopyRegularFile(false,/usr/local/bin/slim-sensor,/tmp/slim-state/slim-sensor,true)"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - removing existing state location: /tmp/slim-state/.slim-state/images/8652b9f0cb4c05995
75e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - created new image state location: /tmp/slim-state/.slim-state/images/8652b9f0cb4c05995
75e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-02-07T16:32:08+01:00" level=debug msg="localVolumePath=/tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14
a50cf, artifactLocation=/tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts, statePath=/tmp/slim-state
, stateKey=8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf" app=slim command=build
cmd=build info=image id='sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf' size.bytes='211689189' size.human='212 MB'
time="2023-02-07T16:32:08+01:00" level=info msg="processing 'fat' image info..." app=slim command=build
time="2023-02-07T16:32:08+01:00" level=debug msg="\n\nIMAGE HISTORY =>\n[]docker.ImageHistory{docker.ImageHistory{ID:\"8652b9f0cb4c0599575e5a003f5906876e10c1ceb
2ab9fe1786712dac14a50cf\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"/bin/bash\\\"]\", Size:0, Comment:\"\"}, docker.Image
History{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  LABEL org.label-schema.schema-version=1.0 org.label-schema.name
=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base
 Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00\", Size:
0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop) ADD file:b3ebbe8bd304723d43b7b44a6
d990cd657b63d93d6a2a9293983a30bfc1dfa53 in / \", Size:211685376, Comment:\"\"}}\n\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="IMAGE INSTRUCTIONS:"
time="2023-02-07T16:32:08+01:00" level=debug msg="FROM scratch"
time="2023-02-07T16:32:08+01:00" level=debug msg="# new image"
time="2023-02-07T16:32:08+01:00" level=debug msg="\n# instruction set group 1\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 /"
time="2023-02-07T16:32:08+01:00" level=debug msg="LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=Cent
OS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS o
rg.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00"
time="2023-02-07T16:32:08+01:00" level=debug msg="CMD [\"/bin/bash\"]\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="# end of image:  (id:  tags: )"
time="2023-02-07T16:32:08+01:00" level=debug
cmd=build info=image.stack index='0' name='' id='8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
time="2023-02-07T16:32:08+01:00" level=debug msg="FatContainerCmd - [/bin/bash]" app=slim command=build component=container.inspector
time="2023-02-07T16:32:08+01:00" level=info msg="starting instrumented 'fat' container..." app=slim command=build
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: sensor (/usr/local/bin/slim-sensor) perms => 0755" app=slim command=build component=container.in
spector
time="2023-02-07T16:32:08+01:00" level=debug msg="ensureSensorVolume: already have volume = slim-sensor.1.40.0" app=slim command=build component=container.inspe
ctor
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{\"65501/tcp\":struct {}{}, \"65502/tcp\":stru
ct {}{}}" app=slim command=build component=container.inspector
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: HostConfig.PublishAllPorts => true" app=slim command=build component=container.inspector
cmd=build info=container status='created' name='slimk_1119757_20230207153208' id='7de7102ee4c1481b5d1df610675dc851248637767990edfc095b11c376d06afd'
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: container HostConfig.NetworkMode => bridge len(ports)=2" app=slim command=build component=contai
ner.inspector
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{\"65501/tcp\":[]docker.P
ortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"45179\"}}, \"65502/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"40253\"}}}" app=s
lim command=build component=container.inspector
cmd=build info=container status='running' name='slimk_1119757_20230207153208' id='7de7102ee4c1481b5d1df610675dc851248637767990edfc095b11c376d06afd'
cmd=build info=container message='obtained IP address' ip='10.88.0.4'
time="2023-02-07T16:32:08+01:00" level=debug msg=target.container.ipc.connect app=slim command=build component=container.inspector container.network= in.contain
er=false ipc.mode=proxy op=container.Inspector.initContainerChannels port.cmd=45179 port.evt=40253 target=127.0.0.1
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.NewClient(127.0.0.1,45179,40253)"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:45179,15s) [time=1675783928853922710]"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:45179 -> local=127.0.0.1:44652 - conn.Write wc=75 err=<nil> [time=16757
83928854436284]"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read() - (0xc000426360)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"16757839288543
95730.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.control\\\"}[|>]\\n\""
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1675783928854395730.52fdfc072182654f\",\"type\":\"ft.contr
ol\"}[|>]\n'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: frame data => tid=1675783928854395730.52fdfc072182654f type=ft.control body=''"
time="2023-02-07T16:32:08+01:00" level=debug msg="verifyCommandChannel: client.Read() (tid=1675783928854395730.52fdfc072182654f type=ft.control) result.data=''"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:40253,15s) [time=1675783928855571026]"
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\
":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert
_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}'\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.CommandClient.Call: calling c.Write()"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:45179 -> local=127.0.0.1:44652 - conn.Write wc=341 err=<nil> [time=1675
783928855830324]"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.CommandClient.Call: calling c.Read()"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read() - (0xc000426360)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"16757839288558
12005.163f5f0f9a621d72\\\",\\\"type\\\":\\\"ft.response\\\",\\\"body\\\":{\\\"status\\\":\\\"ok\\\"}}[|>]\\n\""
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1675783928855812005.163f5f0f9a621d72\",\"type\":\"ft.respo
nse\",\"body\":{\"status\":\"ok\"}}[|>]\n'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: frame data => tid=1675783928855812005.163f5f0f9a621d72 type=ft.response body='{\"status\"
:\"ok\"}'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1675783928855812005.163f5f0f9a621d72 type=ft.response) result.data='
{\"status\":\"ok\"}'"
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{\"status\":\"ok\"}'\n"
cmd=build info=cmd.startmonitor status='sent'
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read() - (0xc000426480)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"16757839289253
86180.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.event\\\",\\\"body\\\":{\\\"name\\\":\\\"event.monitor.start.failed\\\",\\\"data\\\":null}}[|>]\\n\""
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1675783928925386180.52fdfc072182654f\",\"type\":\"ft.event
\",\"body\":{\"name\":\"event.monitor.start.failed\",\"data\":null}}[|>]\n'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: frame data => tid=1675783928925386180.52fdfc072182654f type=ft.event body='{\"name\":\"ev
ent.monitor.start.failed\",\"data\":null}'"
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.Client.GetEvent(): channel.Recv() - done [tid=1675783928925386180.52fdfc072182654f evt={\"name\":\"event.m
onitor.start.failed\",\"data\":null}]\n"
cmd=build info=event.startmonitor.done status='received.unexpected' data='&{Name:event.monitor.start.failed Data:<nil>}'
cmd=build info=report file='slim.report.json'
time="2023-02-07T16:32:08+01:00" level=fatal msg="docker-slim: failure" error="unexpected event type" stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\tru
ntime/debug/stack.go:24 +0x65\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn({0x1edf700, 0xc00049abb0})\n\tgithub.com/docker-slim/docker-slim/pkg/u
til/errutil/errutil.go:28 +0x5e\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc00071e580?, {0x1edf700?, 0xc00049abb0?})\n\tgithub.com
/docker-slim/docker-slim/pkg/app/execontext.go:56 +0x49\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(_, _, {_, _}, _, {_, _}, {_,
 _}, {0x0, ...}, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:879 +0x422b\ngithub.com/docker-slim/docker-slim/pkg/app/mas
ter/commands/build.glob..func1(0xc000748d40)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:640 +0x4bb0\ngithub.com/urfave/cli/v2.(*
Command).Run(0x2cd6580, 0xc00003e740)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x5dc\ngithub.com/urfave/cli/v2.(*App).RunContext(0xc000582680, {0x1ef8
d70?, 0xc000196000}, {0xc000186040, 0x4, 0x4})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0xb7d\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfa
ve/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 +0x46\nmain.
main()\n\tgithub.com/docker-slim/docker-slim/cmd/slim/main.go:15 +0x18e\n" version="linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15
_09:42:23PM"

danpawlik avatar Feb 07 '23 15:02 danpawlik

Same question, how to get slim while using podman?

$ systemctl --user enable --now podman.socket
Created symlink /home/foo/.config/systemd/user/sockets.target.wants/podman.socket → /usr/lib/systemd/user/podman.socket.

$ slim
app='slim' message='Join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
app='slim' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
app='slim' message='GitHub Discussions' info='https://github.com/docker-slim/docker-slim/discussions'
slim: info=docker.connect.error message='missing Docker connection info'
slim: state=exited version=linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15_09:42:23PM location='/opt/slim/1.40.0'

$ slim --host unix:///run/user/1000/podman/podman.sock 
app='slim' message='Join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
app='slim' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
app='slim' message='GitHub Discussions' info='https://github.com/docker-slim/docker-slim/discussions'
slim: info=docker.connect.error message='missing Docker connection info'
slim: state=exited version=linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15_09:42:23PM location='/opt/slim/1.40.0'

bioinfornatics avatar Feb 15 '23 00:02 bioinfornatics

ok found, we had to export this value

export DOCKER_HOST="unix:///run/user/1000/podman/podman.sock"

bioinfornatics avatar Feb 15 '23 00:02 bioinfornatics

slim --host unix:///run/user/1000/podman/podman.sock

On which system it is working? I'm trying on Fedora 37 on which it does not work.

Steps what I'm doing (as non root user or root user):

release="1.40.0"
cd /tmp
curl -L -o ds.tar.gz "https://downloads.dockerslim.com/releases/${release}/dist_linux.tar.gz"
tar -xvf ds.tar.gz
sudo mv dist_linux/slim /usr/local/bin/
sudo mv dist_linux/slim-sensor /usr/local/bin/
cd -

# pull example image
podman pull quay.io/centos/centos:7

# as not root user / root user (both does not work)
systemctl --user enable --now podman.socket
PODMAN_SOCKET=$(systemctl status podman.socket | grep "Listen:" | awk '{print $2}')
export DOCKER_HOST="unix://${PODMAN_SOCKET}"

# both does not work.
slim build quay.io/centos/centos:7
slim --host unix://${PODMAN_SOCKET} build --target quay.io/centos/centos:7

in both cases (root/non root) it does not work.

danpawlik avatar Feb 16 '23 08:02 danpawlik

no finally that didn't works was just the next step to this issue finally

bioinfornatics avatar Feb 21 '23 21:02 bioinfornatics

Latest stable version (slim version linux | Transformer| 1.40.0| a4bb798922820523fceedb9121f5bcfdfc9f2901| 2023-01-15_09:42:23PM) got an error:

slim --log-level=trace  build quay.io/centos/centos:7                                                  ✘ INT 16:32:03
time="2023-02-07T16:32:08+01:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"pav-x1\", Release:\"6.2.0-0.rc6.44.fc38.x86_64\", V
ersion:\"#1 SMP PREEMPT_DYNAMIC Mon Jan 30 16:48:03 UTC 2023\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Fedora
Linux\", Version:\"37\", DisplayName:\"Fedora Linux 37 (KDE Plasma)\"}}"
app='slim' message='Join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
app='slim' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
app='slim' message='GitHub Discussions' info='https://github.com/docker-slim/docker-slim/discussions'
time="2023-02-07T16:32:08+01:00" level=debug msg="param.error.app.options - no app params"
cmd=build info=param.http.probe message='using default probe'
time="2023-02-07T16:32:08+01:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=slim command=build
time="2023-02-07T16:32:08+01:00" level=debug msg="docker-slim: new Docker client (env) [5]"
cmd=build state=started
cmd=build info=params target='quay.io/centos/centos:7' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' target.type='image'
time="2023-02-07T16:32:08+01:00" level=info msg="image=quay.io/centos/centos:7 http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (
false) cmd=[] (false) workdir='' env=[] expose=map[]" app=slim command=build
time="2023-02-07T16:32:08+01:00" level=trace msg="image.inspector.NoImage: ImageRef=quay.io/centos/centos:7 ImageIdentity=&dockerutil.ImageIdentity{ID:\"sha256:
8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", ShortTags:[]string{\"7\"}, RepoTags:[]string{\"quay.io/centos/centos:7\"}, ShortDigests:[]st
ring{\"sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb2
6d14bf974193579039d5573fb2348664deef76e\"}}"
time="2023-02-07T16:32:08+01:00" level=trace msg="targetRef=quay.io/centos/centos:7 ii.ImageRef=quay.io/centos/centos:7" app=slim command=build
cmd=build state=image.inspection.start
time="2023-02-07T16:32:08+01:00" level=info msg="inspecting 'fat' image metadata..." app=slim command=build
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: ImageInfo=&docker.Image{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe17
86712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Parent:\"\", Comment:\"\", Created:time.Date(2020, time.November, 14, 0, 20, 4, 644613188, ti
me.UTC), Container:\"\", ContainerConfig:docker.Config{Hostname:\"8652b9f0cb4\", Domainname:\"\", User:\"\", Memory:0, MemorySwap:0, MemoryReservation:0, Kernel
Memory:0, CPUShares:0, CPUSet:\"\", PortSpecs:[]string(nil), ExposedPorts:map[docker.Port]struct {}(nil), PublishService:\"\", StopSignal:\"\", StopTimeout:0, E
nv:[]string(nil), Cmd:[]string(nil), Shell:[]string(nil), Healthcheck:(*docker.HealthConfig)(nil), DNS:[]string(nil), Image:\"\", Volumes:map[string]struct {}(n
il), VolumeDriver:\"\", WorkingDir:\"\", MacAddress:\"\", Entrypoint:[]string(nil), SecurityOpts:[]string(nil), OnBuild:[]string(nil), Mounts:[]docker.Mount(nil
), Labels:map[string]string(nil), AttachStdin:false, AttachStdout:false, AttachStderr:false, ArgsEscaped:false, Tty:false, OpenStdin:false, StdinOnce:false, Net
workDisabled:false, VolumesFrom:\"\"}, DockerVersion:\"19.03.12\", Author:\"\", Config:(*docker.Config)(0xc0003f6000), Architecture:\"amd64\", Size:211689189, V
irtualSize:211689189, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RootFS:(*docker.R
ootFS)(0xc000564180), OS:\"linux\"}"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: imageList.size=7"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record
=docker.APIImages{ID:\"sha256:b5000783c663377c04e361848695f362f40d084705c25dde891714ea3d03340b\", RepoTags:[]string{\"docker.io/openspeedtest/latest:latest\"},
Created:1675161603, Size:107128032, VirtualSize:107128032, ParentID:\"\", RepoDigests:[]string{\"docker.io/openspeedtest/latest@sha256:056a7cb42fa2f422a7b66fb23
c30e3bb464346c57cd42072fbf32f04069d3322\", \"docker.io/openspeedtest/latest@sha256:f134419a93c0b3dfd408d075690367a33765a423df9c7e92883ed24eddfbdb7f\"}, Labels:m
ap[string]string{\"maintainer\":\"OpenSpeedTest.com <[email protected]>\"}}"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record
=docker.APIImages{ID:\"sha256:0843f949a4dbeba6bb4bb313c272ae2ef57651a9569aac271fe3bba2130e10b0\", RepoTags:[]string{\"quay.io/centos/centos:stream9\"}, Created:
1674637041, Size:160111770, VirtualSize:160111770, ParentID:\"\", RepoDigests:[]string{\"quay.io/centos/centos@sha256:2599aad36b178e108586ab2a9220d6fd9bb31a597a
08f137566dbdd27405e929\", \"quay.io/centos/centos@sha256:6041c3c1a38b97b0c78d2c29a9a3d4f83aaa43eb160b4dda3a2abd29232955be\"}, Labels:map[string]string{\"io.buil
dah.version\":\"1.19.8\", \"org.label-schema.build-date\":\"20230125\", \"org.label-schema.license\":\"GPLv2\", \"org.label-schema.name\":\"CentOS Stream 9 Base
 Image\", \"org.label-schema.schema-version\":\"1.0\", \"org.label-schema.vendor\":\"CentOS\"}}"
time="2023-02-07T16:32:08+01:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record
=docker.APIImages{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Created:160531
3204, Size:211689189, VirtualSize:211689189, ParentID:\"\", RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573
fb2348664deef76e\"}, Labels:map[string]string{\"org.label-schema.build-date\":\"20201113\", \"org.label-schema.license\":\"GPLv2\", \"org.label-schema.name\":\"
CentOS Base Image\", \"org.label-schema.schema-version\":\"1.0\", \"org.label-schema.vendor\":\"CentOS\", \"org.opencontainers.image.created\":\"2020-11-13 00:0
0:00+00:00\", \"org.opencontainers.image.licenses\":\"GPL-2.0-only\", \"org.opencontainers.image.title\":\"CentOS Base Image\", \"org.opencontainers.image.vendo
r\":\"CentOS\"}}"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs(,sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf)"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - statePrefix=/usr/local/bin appDir=/usr/local/bin badPath=/usr/local/bin"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - overriding state path to /tmp/slim-state"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - statePrefix=/tmp/slim-state appDir=/usr/local/bin badPath=/usr/local/bin"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - copying sensor to state path (to /tmp/slim-state)"
time="2023-02-07T16:32:08+01:00" level=debug msg="CopyRegularFile(false,/usr/local/bin/slim-sensor,/tmp/slim-state/slim-sensor,true)"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - removing existing state location: /tmp/slim-state/.slim-state/images/8652b9f0cb4c05995
75e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-02-07T16:32:08+01:00" level=debug msg="PrepareImageStateDirs - created new image state location: /tmp/slim-state/.slim-state/images/8652b9f0cb4c05995
75e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-02-07T16:32:08+01:00" level=debug msg="localVolumePath=/tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14
a50cf, artifactLocation=/tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts, statePath=/tmp/slim-state
, stateKey=8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf" app=slim command=build
cmd=build info=image id='sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf' size.bytes='211689189' size.human='212 MB'
time="2023-02-07T16:32:08+01:00" level=info msg="processing 'fat' image info..." app=slim command=build
time="2023-02-07T16:32:08+01:00" level=debug msg="\n\nIMAGE HISTORY =>\n[]docker.ImageHistory{docker.ImageHistory{ID:\"8652b9f0cb4c0599575e5a003f5906876e10c1ceb
2ab9fe1786712dac14a50cf\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"/bin/bash\\\"]\", Size:0, Comment:\"\"}, docker.Image
History{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  LABEL org.label-schema.schema-version=1.0 org.label-schema.name
=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base
 Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00\", Size:
0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop) ADD file:b3ebbe8bd304723d43b7b44a6
d990cd657b63d93d6a2a9293983a30bfc1dfa53 in / \", Size:211685376, Comment:\"\"}}\n\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="IMAGE INSTRUCTIONS:"
time="2023-02-07T16:32:08+01:00" level=debug msg="FROM scratch"
time="2023-02-07T16:32:08+01:00" level=debug msg="# new image"
time="2023-02-07T16:32:08+01:00" level=debug msg="\n# instruction set group 1\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 /"
time="2023-02-07T16:32:08+01:00" level=debug msg="LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=Cent
OS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS o
rg.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00"
time="2023-02-07T16:32:08+01:00" level=debug msg="CMD [\"/bin/bash\"]\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="# end of image:  (id:  tags: )"
time="2023-02-07T16:32:08+01:00" level=debug
cmd=build info=image.stack index='0' name='' id='8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
time="2023-02-07T16:32:08+01:00" level=debug msg="FatContainerCmd - [/bin/bash]" app=slim command=build component=container.inspector
time="2023-02-07T16:32:08+01:00" level=info msg="starting instrumented 'fat' container..." app=slim command=build
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: sensor (/usr/local/bin/slim-sensor) perms => 0755" app=slim command=build component=container.in
spector
time="2023-02-07T16:32:08+01:00" level=debug msg="ensureSensorVolume: already have volume = slim-sensor.1.40.0" app=slim command=build component=container.inspe
ctor
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{\"65501/tcp\":struct {}{}, \"65502/tcp\":stru
ct {}{}}" app=slim command=build component=container.inspector
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: HostConfig.PublishAllPorts => true" app=slim command=build component=container.inspector
cmd=build info=container status='created' name='slimk_1119757_20230207153208' id='7de7102ee4c1481b5d1df610675dc851248637767990edfc095b11c376d06afd'
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: container HostConfig.NetworkMode => bridge len(ports)=2" app=slim command=build component=contai
ner.inspector
time="2023-02-07T16:32:08+01:00" level=debug msg="RunContainer: container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{\"65501/tcp\":[]docker.P
ortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"45179\"}}, \"65502/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"40253\"}}}" app=s
lim command=build component=container.inspector
cmd=build info=container status='running' name='slimk_1119757_20230207153208' id='7de7102ee4c1481b5d1df610675dc851248637767990edfc095b11c376d06afd'
cmd=build info=container message='obtained IP address' ip='10.88.0.4'
time="2023-02-07T16:32:08+01:00" level=debug msg=target.container.ipc.connect app=slim command=build component=container.inspector container.network= in.contain
er=false ipc.mode=proxy op=container.Inspector.initContainerChannels port.cmd=45179 port.evt=40253 target=127.0.0.1
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.NewClient(127.0.0.1,45179,40253)"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:45179,15s) [time=1675783928853922710]"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:45179 -> local=127.0.0.1:44652 - conn.Write wc=75 err=<nil> [time=16757
83928854436284]"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read() - (0xc000426360)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"16757839288543
95730.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.control\\\"}[|>]\\n\""
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1675783928854395730.52fdfc072182654f\",\"type\":\"ft.contr
ol\"}[|>]\n'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: frame data => tid=1675783928854395730.52fdfc072182654f type=ft.control body=''"
time="2023-02-07T16:32:08+01:00" level=debug msg="verifyCommandChannel: client.Read() (tid=1675783928854395730.52fdfc072182654f type=ft.control) result.data=''"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:40253,15s) [time=1675783928855571026]"
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\
":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert
_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}'\n"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.CommandClient.Call: calling c.Write()"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:45179 -> local=127.0.0.1:44652 - conn.Write wc=341 err=<nil> [time=1675
783928855830324]"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.CommandClient.Call: calling c.Read()"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read() - (0xc000426360)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"16757839288558
12005.163f5f0f9a621d72\\\",\\\"type\\\":\\\"ft.response\\\",\\\"body\\\":{\\\"status\\\":\\\"ok\\\"}}[|>]\\n\""
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1675783928855812005.163f5f0f9a621d72\",\"type\":\"ft.respo
nse\",\"body\":{\"status\":\"ok\"}}[|>]\n'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: frame data => tid=1675783928855812005.163f5f0f9a621d72 type=ft.response body='{\"status\"
:\"ok\"}'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1675783928855812005.163f5f0f9a621d72 type=ft.response) result.data='
{\"status\":\"ok\"}'"
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{\"status\":\"ok\"}'\n"
cmd=build info=cmd.startmonitor status='sent'
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read() - (0xc000426480)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"16757839289253
86180.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.event\\\",\\\"body\\\":{\\\"name\\\":\\\"event.monitor.start.failed\\\",\\\"data\\\":null}}[|>]\\n\""
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1675783928925386180.52fdfc072182654f\",\"type\":\"ft.event
\",\"body\":{\"name\":\"event.monitor.start.failed\",\"data\":null}}[|>]\n'"
time="2023-02-07T16:32:08+01:00" level=debug msg="channel.Client.Read: frame data => tid=1675783928925386180.52fdfc072182654f type=ft.event body='{\"name\":\"ev
ent.monitor.start.failed\",\"data\":null}'"
time="2023-02-07T16:32:08+01:00" level=debug msg="ipc.Client.GetEvent(): channel.Recv() - done [tid=1675783928925386180.52fdfc072182654f evt={\"name\":\"event.m
onitor.start.failed\",\"data\":null}]\n"
cmd=build info=event.startmonitor.done status='received.unexpected' data='&{Name:event.monitor.start.failed Data:<nil>}'
cmd=build info=report file='slim.report.json'
time="2023-02-07T16:32:08+01:00" level=fatal msg="docker-slim: failure" error="unexpected event type" stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\tru
ntime/debug/stack.go:24 +0x65\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn({0x1edf700, 0xc00049abb0})\n\tgithub.com/docker-slim/docker-slim/pkg/u
til/errutil/errutil.go:28 +0x5e\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc00071e580?, {0x1edf700?, 0xc00049abb0?})\n\tgithub.com
/docker-slim/docker-slim/pkg/app/execontext.go:56 +0x49\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(_, _, {_, _}, _, {_, _}, {_,
 _}, {0x0, ...}, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:879 +0x422b\ngithub.com/docker-slim/docker-slim/pkg/app/mas
ter/commands/build.glob..func1(0xc000748d40)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:640 +0x4bb0\ngithub.com/urfave/cli/v2.(*
Command).Run(0x2cd6580, 0xc00003e740)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x5dc\ngithub.com/urfave/cli/v2.(*App).RunContext(0xc000582680, {0x1ef8
d70?, 0xc000196000}, {0xc000186040, 0x4, 0x4})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0xb7d\ngithub.com/urfave/cli/v2.(*App).Run(...)\n\tgithub.com/urfa
ve/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 +0x46\nmain.
main()\n\tgithub.com/docker-slim/docker-slim/cmd/slim/main.go:15 +0x18e\n" version="linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15
_09:42:23PM"

Thank you for sharing the logs! It shows that the main app was able to interact with Podman using the docker sockets and it was able to create a temporary container. For some reason though the sensor in the temporary container wasn't able to start the monitors it uses to observe the application in the temporary container. That's what the 'event.monitor.start.failed' in the logs mean. To know why we need the logs from the temporary container. There's a flag for it in the build command (--show-clogs) or you can get the logs from the temp container directly using the logs command in podman

kcq avatar Feb 25 '23 03:02 kcq

thanks @kcq I re-run the slim command, error is same, so logs from the container:

slim --log-level=trace build --show-clogs quay.io/centos/centos:7             


time="2023-03-02T15:21:52+01:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"pav-p1\", Release:\"6.2.0-63.fc38.x86_64\", Version:\"#1 SMP PREEMPT_DYNAMIC Mon Feb 20 15:07:34 UTC 2023\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Fedora Linux\", Version:\"37\", DisplayName:\"Fedora Linux 37 (KDE Plasma)\"}}"
app='slim' message='Join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
app='slim' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
app='slim' message='GitHub Discussions' info='https://github.com/docker-slim/docker-slim/discussions'
time="2023-03-02T15:21:52+01:00" level=debug msg="param.error.app.options - no app params"
cmd=build info=param.http.probe message='using default probe'
time="2023-03-02T15:21:52+01:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=slim command=build
time="2023-03-02T15:21:52+01:00" level=debug msg="docker-slim: new Docker client (env) [5]"
cmd=build state=started
cmd=build info=params continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' target.type='image' target='quay.io/centos/centos:7'
time="2023-03-02T15:21:52+01:00" level=info msg="image=quay.io/centos/centos:7 http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (false) cmd=[] (false) workdir='' env=[] expose=map[]" app=slim command=build
time="2023-03-02T15:21:52+01:00" level=trace msg="image.inspector.NoImage: ImageRef=quay.io/centos/centos:7 ImageIdentity=&dockerutil.ImageIdentity{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", ShortTags:[]string{\"7\"}, RepoTags:[]string{\"quay.io/centos/centos:7\"}, ShortDigests:[]string{\"sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}}"
time="2023-03-02T15:21:52+01:00" level=trace msg="targetRef=quay.io/centos/centos:7 ii.ImageRef=quay.io/centos/centos:7" app=slim command=build
cmd=build state=image.inspection.start
time="2023-03-02T15:21:52+01:00" level=info msg="inspecting 'fat' image metadata..." app=slim command=build
time="2023-03-02T15:21:52+01:00" level=trace msg="image.Inspector.Inspect: ImageInfo=&docker.Image{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Parent:\"\", Comment:\"\", Created:time.Date(2020, time.November, 14, 0, 20, 4, 644613188, time.UTC), Container:\"\", ContainerConfig:docker.Config{Hostname:\"8652b9f0cb4\", Domainname:\"\", User:\"\", Memory:0, MemorySwap:0, MemoryReservation:0, KernelMemory:0, CPUShares:0, CPUSet:\"\", PortSpecs:[]string(nil), ExposedPorts:map[docker.Port]struct {}(nil), PublishService:\"\", StopSignal:\"\", StopTimeout:0, Env:[]string(nil), Cmd:[]string(nil), Shell:[]string(nil), Healthcheck:(*docker.HealthConfig)(nil), DNS:[]string(nil), Image:\"\", Volumes:map[string]struct {}(nil), VolumeDriver:\"\", WorkingDir:\"\", MacAddress:\"\", Entrypoint:[]string(nil), SecurityOpts:[]string(nil), OnBuild:[]string(nil), Mounts:[]docker.Mount(nil), Labels:map[string]string(nil), AttachStdin:false, AttachStdout:false, AttachStderr:false, ArgsEscaped:false, Tty:false, OpenStdin:false, StdinOnce:false, NetworkDisabled:false, VolumesFrom:\"\"}, DockerVersion:\"19.03.12\", Author:\"\", Config:(*docker.Config)(0xc0000e81e0), Architecture:\"amd64\", Size:211689189, VirtualSize:211689189, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RootFS:(*docker.RootFS)(0xc000881320), OS:\"linux\"}"
time="2023-03-02T15:21:52+01:00" level=trace msg="image.Inspector.Inspect: imageList.size=1"
time="2023-03-02T15:21:52+01:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record=docker.APIImages{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Created:1605313204, Size:211689189, VirtualSize:211689189, ParentID:\"\", RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, Labels:map[string]string{\"org.label-schema.build-date\":\"20201113\", \"org.label-schema.license\":\"GPLv2\", \"org.label-schema.name\":\"CentOS Base Image\", \"org.label-schema.schema-version\":\"1.0\", \"org.label-schema.vendor\":\"CentOS\", \"org.opencontainers.image.created\":\"2020-11-13 00:00:00+00:00\", \"org.opencontainers.image.licenses\":\"GPL-2.0-only\", \"org.opencontainers.image.title\":\"CentOS Base Image\", \"org.opencontainers.image.vendor\":\"CentOS\"}}"
time="2023-03-02T15:21:52+01:00" level=debug msg="PrepareImageStateDirs(,sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf)"
time="2023-03-02T15:21:52+01:00" level=debug msg="PrepareImageStateDirs - statePrefix=/usr/local/bin appDir=/usr/local/bin badPath=/usr/local/bin"
time="2023-03-02T15:21:52+01:00" level=debug msg="PrepareImageStateDirs - overriding state path to /tmp/slim-state"
time="2023-03-02T15:21:52+01:00" level=debug msg="PrepareImageStateDirs - statePrefix=/tmp/slim-state appDir=/usr/local/bin badPath=/usr/local/bin"
time="2023-03-02T15:21:52+01:00" level=debug msg="PrepareImageStateDirs - copying sensor to state path (to /tmp/slim-state)"
time="2023-03-02T15:21:52+01:00" level=debug msg="CopyRegularFile(false,/usr/local/bin/slim-sensor,/tmp/slim-state/slim-sensor,true)"
time="2023-03-02T15:21:52+01:00" level=debug msg="PrepareImageStateDirs - removing existing state location: /tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-03-02T15:21:52+01:00" level=debug msg="PrepareImageStateDirs - created new image state location: /tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-03-02T15:21:52+01:00" level=debug msg="localVolumePath=/tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf, artifactLocation=/tmp/slim-state/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts, statePath=/tmp/slim-state, stateKey=8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf" app=slim command=build
cmd=build info=image size.human='212 MB' id='sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf' size.bytes='211689189'
time="2023-03-02T15:21:52+01:00" level=info msg="processing 'fat' image info..." app=slim command=build
time="2023-03-02T15:21:52+01:00" level=debug msg="\n\nIMAGE HISTORY =>\n[]docker.ImageHistory{docker.ImageHistory{ID:\"8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"/bin/bash\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop) ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 in / \", Size:211685376, Comment:\"\"}}\n\n"
time="2023-03-02T15:21:52+01:00" level=debug msg="IMAGE INSTRUCTIONS:"
time="2023-03-02T15:21:52+01:00" level=debug msg="FROM scratch"
time="2023-03-02T15:21:52+01:00" level=debug msg="# new image"
time="2023-03-02T15:21:52+01:00" level=debug msg="\n# instruction set group 1\n"
time="2023-03-02T15:21:52+01:00" level=debug msg="ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 /"
time="2023-03-02T15:21:52+01:00" level=debug msg="LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00"
time="2023-03-02T15:21:52+01:00" level=debug msg="CMD [\"/bin/bash\"]\n"
time="2023-03-02T15:21:52+01:00" level=debug msg="# end of image:  (id:  tags: )"
time="2023-03-02T15:21:52+01:00" level=debug
cmd=build info=image.stack id='8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf' index='0' name=''
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
time="2023-03-02T15:21:52+01:00" level=debug msg="FatContainerCmd - [/bin/bash]" app=slim command=build component=container.inspector
time="2023-03-02T15:21:52+01:00" level=info msg="starting instrumented 'fat' container..." app=slim command=build
time="2023-03-02T15:21:52+01:00" level=debug msg="RunContainer: sensor (/usr/local/bin/slim-sensor) perms => 0755" app=slim command=build component=container.inspector
time="2023-03-02T15:21:52+01:00" level=debug msg="ensureSensorVolume: already have volume = slim-sensor.1.40.0" app=slim command=build component=container.inspector
time="2023-03-02T15:21:52+01:00" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{\"65501/tcp\":struct {}{}, \"65502/tcp\":struct {}{}}" app=slim command=build component=container.inspector
time="2023-03-02T15:21:52+01:00" level=debug msg="RunContainer: HostConfig.PublishAllPorts => true" app=slim command=build component=container.inspector
cmd=build info=container status='created' name='slimk_1868716_20230302142152' id='46b8ee166aa290a1b3686fafe4e5148e046793c01cbb71becb84f6746d1dd1d4'
time="2023-03-02T15:21:53+01:00" level=debug msg="RunContainer: container HostConfig.NetworkMode => bridge len(ports)=2" app=slim command=build component=container.inspector
time="2023-03-02T15:21:53+01:00" level=debug msg="RunContainer: container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{\"65501/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"42233\"}}, \"65502/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"36115\"}}}" app=slim command=build component=container.inspector
cmd=build info=container status='running' name='slimk_1868716_20230302142152' id='46b8ee166aa290a1b3686fafe4e5148e046793c01cbb71becb84f6746d1dd1d4'
cmd=build info=container message='obtained IP address' ip='10.88.0.5'
time="2023-03-02T15:21:53+01:00" level=debug msg=target.container.ipc.connect app=slim command=build component=container.inspector container.network= in.container=false ipc.mode=proxy op=container.Inspector.initContainerChannels port.cmd=42233 port.evt=36115 target=127.0.0.1
time="2023-03-02T15:21:53+01:00" level=debug msg="ipc.NewClient(127.0.0.1,42233,36115)"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:42233,15s) [time=1677766913028233740]"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:42233 -> local=127.0.0.1:51290 - conn.Write wc=75 err=<nil> [time=1677766913028534740]"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read() - (0xc0003aa0c0)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"1677766913028469295.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.control\\\"}[|>]\\n\""
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1677766913028469295.52fdfc072182654f\",\"type\":\"ft.control\"}[|>]\n'"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read: frame data => tid=1677766913028469295.52fdfc072182654f type=ft.control body=''"
time="2023-03-02T15:21:53+01:00" level=debug msg="verifyCommandChannel: client.Read() (tid=1677766913028469295.52fdfc072182654f type=ft.control) result.data=''"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:36115,15s) [time=1677766913029642644]"
time="2023-03-02T15:21:53+01:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}'\n"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.CommandClient.Call: calling c.Write()"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:42233 -> local=127.0.0.1:51290 - conn.Write wc=341 err=<nil> [time=1677766913029967646]"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.CommandClient.Call: calling c.Read()"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read() - (0xc0003aa0c0)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"1677766913029944632.163f5f0f9a621d72\\\",\\\"type\\\":\\\"ft.response\\\",\\\"body\\\":{\\\"status\\\":\\\"ok\\\"}}[|>]\\n\""
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1677766913029944632.163f5f0f9a621d72\",\"type\":\"ft.response\",\"body\":{\"status\":\"ok\"}}[|>]\n'"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read: frame data => tid=1677766913029944632.163f5f0f9a621d72 type=ft.response body='{\"status\":\"ok\"}'"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1677766913029944632.163f5f0f9a621d72 type=ft.response) result.data='{\"status\":\"ok\"}'"
time="2023-03-02T15:21:53+01:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{\"status\":\"ok\"}'\n"
cmd=build info=cmd.startmonitor status='sent'
time="2023-03-02T15:21:53+01:00" level=debug msg="version.Check: http status = 200 OK" app=docker-slim
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read() - (0xc0003aa2a0)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"1677766913106443144.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.event\\\",\\\"body\\\":{\\\"name\\\":\\\"event.monitor.start.failed\\\",\\\"data\\\":null}}[|>]\\n\""
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1677766913106443144.52fdfc072182654f\",\"type\":\"ft.event\",\"body\":{\"name\":\"event.monitor.start.failed\",\"data\":null}}[|>]\n'"
time="2023-03-02T15:21:53+01:00" level=debug msg="channel.Client.Read: frame data => tid=1677766913106443144.52fdfc072182654f type=ft.event body='{\"name\":\"event.monitor.start.failed\",\"data\":null}'"
time="2023-03-02T15:21:53+01:00" level=debug msg="ipc.Client.GetEvent(): channel.Recv() - done [tid=1677766913106443144.52fdfc072182654f evt={\"name\":\"event.monitor.start.failed\",\"data\":null}]\n"
cmd=build info=event.startmonitor.done status='received.unexpected' data='&{Name:event.monitor.start.failed Data:<nil>}'
time="2023-03-02T15:21:53+01:00" level=debug msg="getting container logs => 46b8ee166aa290a1b3686fafe4e5148e046793c01cbb71becb84f6746d1dd1d4" app=slim command=build component=container.inspector
slim: container stdout:
slim: container stderr:
time="2023-03-02T14:21:52Z" level=info msg="sensor: ver=linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15_09:42:23PM"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: uid=0 euid=0"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: privileged => true"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: active capabilities => map[string]struct {}{\"audit_control\":struct {}{}, \"audit_read\":struct {}{}, \"audit_write\":struct {}{}, \"block_suspend\":struct {}{}, \"bpf\":struct {}{}, \"checkpoint_restore\":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 {}{}, \"perfmon\":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="2023-03-02T14:21:52Z" level=debug msg="sensor: max capabilities => map[string]struct {}{\"audit_control\":struct {}{}, \"audit_read\":struct {}{}, \"audit_write\":struct {}{}, \"block_suspend\":struct {}{}, \"bpf\":struct {}{}, \"checkpoint_restore\":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 {}{}, \"perfmon\":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="2023-03-02T14:21:52Z" level=debug msg="sensor: sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"46b8ee166aa2\", Release:\"6.2.0-63.fc38.x86_64\", Version:\"#1 SMP PREEMPT_DYNAMIC Mon Feb 20 15:07:34 UTC 2023\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"CentOS Linux\", Version:\"7\", DisplayName:\"CentOS Linux 7 (Core)\"}}"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: kernel flags => map[string]string(nil)"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: args => []string{\"/opt/_slim/bin/slim-sensor\", \"-log-level\", \"trace\", \"-log-format\", \"text\"}"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: starting IPC server..."
time="2023-03-02T14:21:52Z" level=debug msg="sensor: ipc.Server.Run()"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65502 [time=1677766912979026046]"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65501 [time=1677766912979315259]"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start.loop()... [time=1677766912979341337]"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start.loop()... [time=1677766912979383776]"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913028879670]"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection = 10.88.0.5:47696 -> 10.88.0.5:65501"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection - call handler..."
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection: 10.88.0.5:47696 -> 10.88.0.5:65501"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: raw frame => '[<|]{\"tid\":\"1677766913028469295.52fdfc072182654f\",\"type\":\"ft.control\"}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: in frame => tid=1677766913028469295.52fdfc072182654f type=ft.control body=''"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - conn.Write wc=75 err=<nil>"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - replied with frame='[<|]{\"tid\":\"1677766913028469295.52fdfc072182654f\",\"type\":\"ft.control\"}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913029998925]"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection = 10.88.0.5:51654 -> 10.88.0.5:65502"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection - call handler..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: cwd => /"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: raw frame => '[<|]{\"tid\":\"1677766913029944632.163f5f0f9a621d72\",\"type\":\"ft.request\",\"body\":{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: mount point => /"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: in frame => tid=1677766913029944632.163f5f0f9a621d72 type=ft.request body='{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: ipc.Server.Run - waiting for done signal..."
time="2023-03-02T14:21:53Z" level=info msg="sensor: waiting for commands..."
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - conn.Write wc=99 err=<nil>"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - replied with frame='[<|]{\"tid\":\"1677766913029944632.163f5f0f9a621d72\",\"type\":\"ft.response\",\"body\":{\"status\":\"ok\"}}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: new command => &{RTASourcePT:true AppName:/bin/bash AppArgs:[] AppEntrypoint:[] AppCmd:[] AppUser: AppStdoutToFile:false AppStderrToFile:false RunTargetAsUser:false ReportOnMainPidExit:false KeepPerms:true Perms:map[] Excludes:[] Preserves:map[] Includes:map[] IncludeBins:[] IncludeExes:[] IncludeShell:false IncludeCertAll:true IncludeCertBundles:false IncludeCertDirs:false IncludeCertPKAll:false IncludeCertPKDirs:false IncludeNew:true IncludeOSLibsNet:true IncludeAppNuxtDir:false IncludeAppNuxtBuildDir:false IncludeAppNuxtDistDir:false IncludeAppNuxtStaticDir:false IncludeAppNuxtNodeModulesDir:false IncludeAppNextDir:false IncludeAppNextBuildDir:false IncludeAppNextDistDir:false IncludeAppNextStaticDir:false IncludeAppNextNodeModulesDir:false IncludeNodePackages:[]}"
time="2023-03-02T14:21:53Z" level=debug msg="sensor.app.prepareEnv()"
time="2023-03-02T14:21:53Z" level=debug msg="sensor.app.prepareEnv - prep file artifacts root dir - '/opt/_slim/artifacts/files'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /dev file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=info msg="sensor: creating monitors..."
time="2023-03-02T14:21:53Z" level=info msg="sensor: starting monitors..."
time="2023-03-02T14:21:53Z" level=info msg="fanmon: Start"
time="2023-03-02T14:21:53Z" level=error msg="sensor: composite monitor - FAN failed to start running" error="SensorError{Op:sensor.fanotify.Run/fanapi.Initialize,Kind:call.error,Wrapped:{Type=syscall.Errno,Info=operation not permitted,Line:101,File:github.com/docker-slim/docker-slim/pkg/app/sensor/monitors/fanotify/monitor.go}}"
time="2023-03-02T14:21:53Z" level=error msg="sensor: failed to start composite monitor" error="SensorError{Op:sensor.fanotify.Run/fanapi.Initialize,Kind:call.error,Wrapped:{Type=syscall.Errno,Info=operation not permitted,Line:101,File:github.com/docker-slim/docker-slim/pkg/app/sensor/monitors/fanotify/monitor.go}}"
time="2023-03-02T14:21:53Z" level=debug msg="ipc.Server.TryPublishEvt(&{Name:event.monitor.start.failed Data:[]})"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Broadcast.Write: 10.88.0.5:51654 -> 10.88.0.5:65502 - conn.Write wc=130 err=<nil>"
time="2023-03-02T14:21:53Z" level=debug msg="ipc.Server.TryPublishEvt(&{Name:event.error Data:[run sensor without monitor failed: SensorError{Op:sensor.fanotify.Run/fanapi.Initialize,Kind:call.error,Wrapped:{Type=syscall.Errno,Info=operation not permitted,Line:101,File:github.com/docker-slim/docker-slim/pkg/app/sensor/monitors/fanotify/monitor.go}}]})"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Broadcast.Write: 10.88.0.5:51654 -> 10.88.0.5:65502 - conn.Write wc=370 err=<nil>"
time="2023-03-02T14:21:53Z" level=info msg="sensor: done!"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913106651005]"
time="2023-03-02T14:21:53Z" level=error msg="channel.Server.Start() - loop.Accept error = accept tcp [::]:65501: use of closed network connection"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913106722323]"
time="2023-03-02T14:21:53Z" level=error msg="channel.Server.Start() - loop.Accept error = accept tcp [::]:65502: use of closed network connection"
slim: end of container logs =============
cmd=build info=report file='slim.report.json'
time="2023-03-02T15:21:53+01:00" level=fatal msg="docker-slim: failure" error="unexpected event type" stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn({0x1edf700, 0xc00041ed90})\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x5e\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc000522580?, {0x1edf700?, 0xc00041ed90?})\n\tgithub.com/docker-slim/docker-slim/pkg/app/execontext.go:56 +0x49\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(_, _, {_, _}, _, {_, _}, {_, _}, {0x0, ...}, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:879 +0x422b\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc000892900)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:640 +0x4bb0\ngithub.com/urfave/cli/v2.(*Command).Run(0x2cd6580, 0xc00064e5c0)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x5dc\ngithub.com/urfave/cli/v2.(*App).RunContext(0xc000500b60, {0x1ef8d70?, 0xc00004c160}, {0xc00003e0a0, 0x5, 0x5})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0xb7d\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 +0x46\nmain.main()\n\tgithub.com/docker-slim/docker-slim/cmd/slim/main.go:15 +0x18e\n" version="linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15_09:42:23PM"

To easier read, just logs from the failed container looks like:

podman logs 46b8ee166aa2

time="2023-03-02T14:21:52Z" level=info msg="sensor: ver=linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15_09:42:23PM"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: uid=0 euid=0"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: privileged => true"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: active capabilities => map[string]struct {}{\"audit_control\":struct {}{}, \"audit_read\":struct {}{}, \"audit_write\":struct {}{}, \"block_suspend\":struct {}{}, \"bpf\":struct {}{}, \"checkpoint_restore\":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 {}{}, \"perfmon\":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="2023-03-02T14:21:52Z" level=debug msg="sensor: max capabilities => map[string]struct {}{\"audit_control\":struct {}{}, \"audit_read\":struct {}{}, \"audit_write\":struct {}{}, \"block_suspend\":struct {}{}, \"bpf\":struct {}{}, \"checkpoint_restore\":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 {}{}, \"perfmon\":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="2023-03-02T14:21:52Z" level=debug msg="sensor: sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"46b8ee166aa2\", Release:\"6.2.0-63.fc38.x86_64\", Version:\"#1 SMP PREEMPT_DYNAMIC Mon Feb 20 15:07:34 UTC 2023\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"CentOS Linux\", Version:\"7\", DisplayName:\"CentOS Linux 7 (Core)\"}}"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: kernel flags => map[string]string(nil)"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: args => []string{\"/opt/_slim/bin/slim-sensor\", \"-log-level\", \"trace\", \"-log-format\", \"text\"}"
time="2023-03-02T14:21:52Z" level=debug msg="sensor: starting IPC server..."
time="2023-03-02T14:21:52Z" level=debug msg="sensor: ipc.Server.Run()"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65502 [time=1677766912979026046]"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start() - addr=0.0.0.0:65501 [time=1677766912979315259]"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start.loop()... [time=1677766912979341337]"
time="2023-03-02T14:21:52Z" level=debug msg="channel.Server.Start.loop()... [time=1677766912979383776]"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913028879670]"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection = 10.88.0.5:47696 -> 10.88.0.5:65501"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection - call handler..."
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection: 10.88.0.5:47696 -> 10.88.0.5:65501"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: raw frame => '[<|]{\"tid\":\"1677766913028469295.52fdfc072182654f\",\"type\":\"ft.control\"}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: in frame => tid=1677766913028469295.52fdfc072182654f type=ft.control body=''"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - conn.Write wc=75 err=<nil>"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - replied with frame='[<|]{\"tid\":\"1677766913028469295.52fdfc072182654f\",\"type\":\"ft.control\"}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913029998925]"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection = 10.88.0.5:51654 -> 10.88.0.5:65502"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop(): new connection - call handler..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: cwd => /"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: raw frame => '[<|]{\"tid\":\"1677766913029944632.163f5f0f9a621d72\",\"type\":\"ft.request\",\"body\":{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: mount point => /"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: in frame => tid=1677766913029944632.163f5f0f9a621d72 type=ft.request body='{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: ipc.Server.Run - waiting for done signal..."
time="2023-03-02T14:21:53Z" level=info msg="sensor: waiting for commands..."
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - conn.Write wc=99 err=<nil>"
time="2023-03-02T14:21:53Z" level=debug msg="channel.CommandServer.OnConnection.worker: 10.88.0.5:47696 -> 10.88.0.5:65501 - replied with frame='[<|]{\"tid\":\"1677766913029944632.163f5f0f9a621d72\",\"type\":\"ft.response\",\"body\":{\"status\":\"ok\"}}[|>]\n'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: new command => &{RTASourcePT:true AppName:/bin/bash AppArgs:[] AppEntrypoint:[] AppCmd:[] AppUser: AppStdoutToFile:false AppStderrToFile:false RunTargetAsUser:false ReportOnMainPidExit:false KeepPerms:true Perms:map[] Excludes:[] Preserves:map[] Includes:map[] IncludeBins:[] IncludeExes:[] IncludeShell:false IncludeCertAll:true IncludeCertBundles:false IncludeCertDirs:false IncludeCertPKAll:false IncludeCertPKDirs:false IncludeNew:true IncludeOSLibsNet:true IncludeAppNuxtDir:false IncludeAppNuxtBuildDir:false IncludeAppNuxtDistDir:false IncludeAppNuxtStaticDir:false IncludeAppNuxtNodeModulesDir:false IncludeAppNextDir:false IncludeAppNextBuildDir:false IncludeAppNextDistDir:false IncludeAppNextStaticDir:false IncludeAppNextNodeModulesDir:false IncludeNodePackages:[]}"
time="2023-03-02T14:21:53Z" level=debug msg="sensor.app.prepareEnv()"
time="2023-03-02T14:21:53Z" level=debug msg="sensor.app.prepareEnv - prep file artifacts root dir - '/opt/_slim/artifacts/files'"
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /dev file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /proc file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=debug msg="sensor: getCurrentPaths() - skipping /sys file system objects..."
time="2023-03-02T14:21:53Z" level=info msg="sensor: creating monitors..."
time="2023-03-02T14:21:53Z" level=info msg="sensor: starting monitors..."
time="2023-03-02T14:21:53Z" level=info msg="fanmon: Start"
time="2023-03-02T14:21:53Z" level=error msg="sensor: composite monitor - FAN failed to start running" error="SensorError{Op:sensor.fanotify.Run/fanapi.Initialize,Kind:call.error,Wrapped:{Type=syscall.Errno,Info=operation not permitted,Line:101,File:github.com/docker-slim/docker-slim/pkg/app/sensor/monitors/fanotify/monitor.go}}"
time="2023-03-02T14:21:53Z" level=error msg="sensor: failed to start composite monitor" error="SensorError{Op:sensor.fanotify.Run/fanapi.Initialize,Kind:call.error,Wrapped:{Type=syscall.Errno,Info=operation not permitted,Line:101,File:github.com/docker-slim/docker-slim/pkg/app/sensor/monitors/fanotify/monitor.go}}"
time="2023-03-02T14:21:53Z" level=debug msg="ipc.Server.TryPublishEvt(&{Name:event.monitor.start.failed Data:[]})"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Broadcast.Write: 10.88.0.5:51654 -> 10.88.0.5:65502 - conn.Write wc=130 err=<nil>"
time="2023-03-02T14:21:53Z" level=debug msg="ipc.Server.TryPublishEvt(&{Name:event.error Data:[run sensor without monitor failed: SensorError{Op:sensor.fanotify.Run/fanapi.Initialize,Kind:call.error,Wrapped:{Type=syscall.Errno,Info=operation not permitted,Line:101,File:github.com/docker-slim/docker-slim/pkg/app/sensor/monitors/fanotify/monitor.go}}]})"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Broadcast.Write: 10.88.0.5:51654 -> 10.88.0.5:65502 - conn.Write wc=370 err=<nil>"
time="2023-03-02T14:21:53Z" level=info msg="sensor: done!"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913106651005]"
time="2023-03-02T14:21:53Z" level=error msg="channel.Server.Start() - loop.Accept error = accept tcp [::]:65501: use of closed network connection"
time="2023-03-02T14:21:53Z" level=debug msg="channel.Server.Start.loop.Accept - new connection... [time=1677766913106722323]"
time="2023-03-02T14:21:53Z" level=error msg="channel.Server.Start() - loop.Accept error = accept tcp [::]:65502: use of closed network connection"

danpawlik avatar Mar 02 '23 14:03 danpawlik

If it helps at all, I'm getting the same exact error as @danpawlik

time="2023-03-20T23:18:31-07:00" level=debug msg="sysinfo => system.SystemInfo{Sysname:\"Linux\", Nodename:\"fedora\", Release:\"6.2.6-300.fc38.x86_64\", Version:\"#1 SMP PREEMPT_DYNAMIC Mon Mar 13 14:30:47 UTC 2023\", Machine:\"x86_64\", Domainname:\"(none)\", OsBuild:\"\", Distro:system.DistroInfo{Name:\"Fedora Linux\", Version:\"38\", DisplayName:\"Fedora Linux 38.20230319.0 (Silverblue Prerelease)\"}}"
app='slim' message='Join the Gitter channel to ask questions or to share your feedback' info='https://gitter.im/docker-slim/community'
app='slim' message='Join the Discord server to ask questions or to share your feedback' info='https://discord.gg/9tDyxYS'
app='slim' message='GitHub Discussions' info='https://github.com/docker-slim/docker-slim/discussions'
time="2023-03-20T23:18:31-07:00" level=debug msg="param.error.app.options - no app params"
cmd=build info=param.http.probe message='using default probe' 
time="2023-03-20T23:18:31-07:00" level=debug msg="customImageTag='', additionalTags=[]string(nil)" app=slim command=build
time="2023-03-20T23:18:31-07:00" level=debug msg="docker-slim: new Docker client (env) [5]"
cmd=build state=started
cmd=build info=params target.type='image' target='quay.io/centos/centos:7' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' 
time="2023-03-20T23:18:31-07:00" level=info msg="image=quay.io/centos/centos:7 http-probe=true remove-file-artifacts=false image-overrides=map[] entrypoint=[] (false) cmd=[] (false) workdir='' env=[] expose=map[]" app=slim command=build
time="2023-03-20T23:18:31-07:00" level=trace msg="image.inspector.NoImage: ImageRef=quay.io/centos/centos:7 ImageIdentity=&dockerutil.ImageIdentity{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", ShortTags:[]string{\"7\"}, RepoTags:[]string{\"quay.io/centos/centos:7\"}, ShortDigests:[]string{\"sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}}"
time="2023-03-20T23:18:31-07:00" level=trace msg="targetRef=quay.io/centos/centos:7 ii.ImageRef=quay.io/centos/centos:7" app=slim command=build
cmd=build state=image.inspection.start
time="2023-03-20T23:18:31-07:00" level=info msg="inspecting 'fat' image metadata..." app=slim command=build
time="2023-03-20T23:18:31-07:00" level=trace msg="image.Inspector.Inspect: ImageInfo=&docker.Image{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Parent:\"\", Comment:\"\", Created:time.Date(2020, time.November, 14, 0, 20, 4, 644613188, time.UTC), Container:\"\", ContainerConfig:docker.Config{Hostname:\"8652b9f0cb4\", Domainname:\"\", User:\"\", Memory:0, MemorySwap:0, MemoryReservation:0, KernelMemory:0, CPUShares:0, CPUSet:\"\", PortSpecs:[]string(nil), ExposedPorts:map[docker.Port]struct {}(nil), PublishService:\"\", StopSignal:\"\", StopTimeout:0, Env:[]string(nil), Cmd:[]string(nil), Shell:[]string(nil), Healthcheck:(*docker.HealthConfig)(nil), DNS:[]string(nil), Image:\"\", Volumes:map[string]struct {}(nil), VolumeDriver:\"\", WorkingDir:\"\", MacAddress:\"\", Entrypoint:[]string(nil), SecurityOpts:[]string(nil), OnBuild:[]string(nil), Mounts:[]docker.Mount(nil), Labels:map[string]string(nil), AttachStdin:false, AttachStdout:false, AttachStderr:false, ArgsEscaped:false, Tty:false, OpenStdin:false, StdinOnce:false, NetworkDisabled:false, VolumesFrom:\"\"}, DockerVersion:\"19.03.12\", Author:\"\", Config:(*docker.Config)(0xc0005da3c0), Architecture:\"amd64\", Size:211689189, VirtualSize:211689189, RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, RootFS:(*docker.RootFS)(0xc0002b9590), OS:\"linux\"}"
time="2023-03-20T23:18:31-07:00" level=trace msg="image.Inspector.Inspect: imageList.size=3"
time="2023-03-20T23:18:31-07:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record=docker.APIImages{ID:\"sha256:ed72bab16cb05ec709144040a78a9dedae9a23198f253e912e60c436aa639583\", RepoTags:[]string{\"docker.io/daly/axiom:latest\"}, Created:1434896570, Size:915332006, VirtualSize:915332006, ParentID:\"\", RepoDigests:[]string{\"docker.io/daly/axiom@sha256:228c25f51be6c600e2c37c6ba8506a241c34ae43c24afbfa172d49658409a380\"}, Labels:map[string]string(nil)}"
time="2023-03-20T23:18:31-07:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record=docker.APIImages{ID:\"sha256:fad78704cdf66c14f29e551296fdbace5d9fc3e29533acd31b5219413cd9f14f\", RepoTags:[]string{\"docker.io/library/docker-slim-empty-image:latest\"}, Created:1679379242, Size:1603, VirtualSize:1603, ParentID:\"\", RepoDigests:[]string{\"docker.io/library/docker-slim-empty-image@sha256:6637d509a3b378f0f65dc8170d02920b991f5c8e57cfbeb1ffb87bb77822c061\"}, Labels:map[string]string{\"io.buildah.version\":\"1.29.0\"}}"
time="2023-03-20T23:18:31-07:00" level=trace msg="image.Inspector.Inspect: target=sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf record=docker.APIImages{ID:\"sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", RepoTags:[]string{\"quay.io/centos/centos:7\"}, Created:1605313204, Size:211689189, VirtualSize:211689189, ParentID:\"\", RepoDigests:[]string{\"quay.io/centos/centos@sha256:e4ca2ed0202e76be184e75fb26d14bf974193579039d5573fb2348664deef76e\"}, Labels:map[string]string{\"org.label-schema.build-date\":\"20201113\", \"org.label-schema.license\":\"GPLv2\", \"org.label-schema.name\":\"CentOS Base Image\", \"org.label-schema.schema-version\":\"1.0\", \"org.label-schema.vendor\":\"CentOS\", \"org.opencontainers.image.created\":\"2020-11-13 00:00:00+00:00\", \"org.opencontainers.image.licenses\":\"GPL-2.0-only\", \"org.opencontainers.image.title\":\"CentOS Base Image\", \"org.opencontainers.image.vendor\":\"CentOS\"}}"
time="2023-03-20T23:18:31-07:00" level=debug msg="PrepareImageStateDirs(,sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf)"
time="2023-03-20T23:18:31-07:00" level=debug msg="PrepareImageStateDirs - removing existing state location: /var/home/nolanp/.local/bin/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-03-20T23:18:31-07:00" level=debug msg="PrepareImageStateDirs - created new image state location: /var/home/nolanp/.local/bin/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts"
time="2023-03-20T23:18:31-07:00" level=debug msg="localVolumePath=/var/home/nolanp/.local/bin/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf, artifactLocation=/var/home/nolanp/.local/bin/.slim-state/images/8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf/artifacts, statePath=/var/home/nolanp/.local/bin, stateKey=8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf" app=slim command=build
cmd=build info=image id='sha256:8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf' size.bytes='211689189' size.human='212 MB' 
time="2023-03-20T23:18:31-07:00" level=info msg="processing 'fat' image info..." app=slim command=build
time="2023-03-20T23:18:31-07:00" level=debug msg="\n\nIMAGE HISTORY =>\n[]docker.ImageHistory{docker.ImageHistory{ID:\"8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  CMD [\\\"/bin/bash\\\"]\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop)  LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00\", Size:0, Comment:\"\"}, docker.ImageHistory{ID:\"<missing>\", Tags:[]string(nil), Created:1605313204, CreatedBy:\"/bin/sh -c #(nop) ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 in / \", Size:211685376, Comment:\"\"}}\n\n"
time="2023-03-20T23:18:31-07:00" level=debug msg="IMAGE INSTRUCTIONS:"
time="2023-03-20T23:18:31-07:00" level=debug msg="FROM scratch"
time="2023-03-20T23:18:31-07:00" level=debug msg="# new image"
time="2023-03-20T23:18:31-07:00" level=debug msg="\n# instruction set group 1\n"
time="2023-03-20T23:18:31-07:00" level=debug msg="ADD file:b3ebbe8bd304723d43b7b44a6d990cd657b63d93d6a2a9293983a30bfc1dfa53 /"
time="2023-03-20T23:18:31-07:00" level=debug msg="LABEL org.label-schema.schema-version=1.0 org.label-schema.name=CentOS Base Image org.label-schema.vendor=CentOS org.label-schema.license=GPLv2 org.label-schema.build-date=20201113 org.opencontainers.image.title=CentOS Base Image org.opencontainers.image.vendor=CentOS org.opencontainers.image.licenses=GPL-2.0-only org.opencontainers.image.created=2020-11-13 00:00:00+00:00"
time="2023-03-20T23:18:31-07:00" level=debug msg="CMD [\"/bin/bash\"]\n"
time="2023-03-20T23:18:31-07:00" level=debug msg="# end of image:  (id:  tags: )"
time="2023-03-20T23:18:31-07:00" level=debug
cmd=build info=image.stack index='0' name='' id='8652b9f0cb4c0599575e5a003f5906876e10c1ceb2ab9fe1786712dac14a50cf' 
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
time="2023-03-20T23:18:31-07:00" level=debug msg="FatContainerCmd - [/bin/bash]" app=slim command=build component=container.inspector
time="2023-03-20T23:18:31-07:00" level=info msg="starting instrumented 'fat' container..." app=slim command=build
time="2023-03-20T23:18:31-07:00" level=debug msg="RunContainer: sensor (/var/home/nolanp/.local/bin/slim-sensor) perms => 0755" app=slim command=build component=container.inspector
time="2023-03-20T23:18:31-07:00" level=debug msg="ensureSensorVolume: already have volume = slim-sensor.1.40.0" app=slim command=build component=container.inspector
time="2023-03-20T23:18:31-07:00" level=debug msg="RunContainer: default exposed ports => map[docker.Port]struct {}{\"65501/tcp\":struct {}{}, \"65502/tcp\":struct {}{}}" app=slim command=build component=container.inspector
time="2023-03-20T23:18:31-07:00" level=debug msg="RunContainer: HostConfig.PublishAllPorts => true" app=slim command=build component=container.inspector
cmd=build info=container status='created' name='slimk_30941_20230321061831' id='56b0f168813adb5c566c33a3c1864808450996a6d500297af990c79575f6d496' 
time="2023-03-20T23:18:32-07:00" level=debug msg="version.Check: http status = 200 OK" app=docker-slim
time="2023-03-20T23:18:32-07:00" level=debug msg="RunContainer: container HostConfig.NetworkMode => bridge len(ports)=2" app=slim command=build component=container.inspector
time="2023-03-20T23:18:32-07:00" level=debug msg="RunContainer: container NetworkSettings.Ports => map[docker.Port][]docker.PortBinding{\"65501/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"33587\"}}, \"65502/tcp\":[]docker.PortBinding{docker.PortBinding{HostIP:\"\", HostPort:\"34679\"}}}" app=slim command=build component=container.inspector
cmd=build info=container status='running' name='slimk_30941_20230321061831' id='56b0f168813adb5c566c33a3c1864808450996a6d500297af990c79575f6d496' 
cmd=build info=container message='obtained IP address' ip='10.88.0.12' 
time="2023-03-20T23:18:32-07:00" level=debug msg=target.container.ipc.connect app=slim command=build component=container.inspector container.network= in.container=false ipc.mode=proxy op=container.Inspector.initContainerChannels port.cmd=33587 port.evt=34679 target=127.0.0.1
time="2023-03-20T23:18:32-07:00" level=debug msg="ipc.NewClient(127.0.0.1,33587,34679)"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:33587,15s) [time=1679379512364336653]"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:33587 -> local=127.0.0.1:40202 - conn.Write wc=75 err=<nil> [time=1679379512364968690]"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read() - (0xc000a58480)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"1679379512364886446.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.control\\\"}[|>]\\n\""
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1679379512364886446.52fdfc072182654f\",\"type\":\"ft.control\"}[|>]\n'"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read: frame data => tid=1679379512364886446.52fdfc072182654f type=ft.control body=''"
time="2023-03-20T23:18:32-07:00" level=debug msg="verifyCommandChannel: client.Read() (tid=1679379512364886446.52fdfc072182654f type=ft.control) result.data=''"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.NewClient: connect wait timeout - 1m0s"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.NewClient: net.DialTimeout(tcp,127.0.0.1:34679,15s) [time=1679379512365904487]"
time="2023-03-20T23:18:32-07:00" level=debug msg="ipc.Client.SendCommand() cmd channel call data='{\"name\":\"cmd.monitor.start\",\"data\":{\"rta_source_ptrace\":true,\"app_name\":\"/bin/bash\",\"app_stdout_to_file\":false,\"app_stderr_to_file\":false,\"report_on_main_pid_exit\":false,\"keep_perms\":true,\"include_cert_all\":true,\"include_new\":true,\"include_oslibs_net\":true}}'\n"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.CommandClient.Call: calling c.Write()"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Write: remote=127.0.0.1:33587 -> local=127.0.0.1:40202 - conn.Write wc=341 err=<nil> [time=1679379512366272037]"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.CommandClient.Call: calling c.Read()"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read() - (0xc000a58480)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"1679379512366233134.163f5f0f9a621d72\\\",\\\"type\\\":\\\"ft.response\\\",\\\"body\\\":{\\\"status\\\":\\\"ok\\\"}}[|>]\\n\""
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1679379512366233134.163f5f0f9a621d72\",\"type\":\"ft.response\",\"body\":{\"status\":\"ok\"}}[|>]\n'"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read: frame data => tid=1679379512366233134.163f5f0f9a621d72 type=ft.response body='{\"status\":\"ok\"}'"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.CommandClient.Call: c.Read() (tid=1679379512366233134.163f5f0f9a621d72 type=ft.response) result.data='{\"status\":\"ok\"}'"
time="2023-03-20T23:18:32-07:00" level=debug msg="ipc.Client.SendCommand() cmd channel call response='{\"status\":\"ok\"}'\n"
cmd=build info=cmd.startmonitor status='sent' 
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read() - (0xc000a585a0)reader.ReadString => err=<nil> raw=\"[<|]{\\\"tid\\\":\\\"1679379512419764972.52fdfc072182654f\\\",\\\"type\\\":\\\"ft.event\\\",\\\"body\\\":{\\\"name\\\":\\\"event.monitor.start.failed\\\",\\\"data\\\":null}}[|>]\\n\""
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read: got raw frame ='[<|]{\"tid\":\"1679379512419764972.52fdfc072182654f\",\"type\":\"ft.event\",\"body\":{\"name\":\"event.monitor.start.failed\",\"data\":null}}[|>]\n'"
time="2023-03-20T23:18:32-07:00" level=debug msg="channel.Client.Read: frame data => tid=1679379512419764972.52fdfc072182654f type=ft.event body='{\"name\":\"event.monitor.start.failed\",\"data\":null}'"
time="2023-03-20T23:18:32-07:00" level=debug msg="ipc.Client.GetEvent(): channel.Recv() - done [tid=1679379512419764972.52fdfc072182654f evt={\"name\":\"event.monitor.start.failed\",\"data\":null}]\n"
cmd=build info=event.startmonitor.done status='received.unexpected' data='&{Name:event.monitor.start.failed Data:<nil>}' 
cmd=build info=report file='slim.report.json' 
time="2023-03-20T23:18:32-07:00" level=fatal msg="docker-slim: failure" error="unexpected event type" stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn({0x1edf700, 0xc000436d80})\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:28 +0x5e\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0xc0000eb600?, {0x1edf700?, 0xc000436d80?})\n\tgithub.com/docker-slim/docker-slim/pkg/app/execontext.go:56 +0x49\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(_, _, {_, _}, _, {_, _}, {_, _}, {0x0, ...}, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:879 +0x422b\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0xc000038cc0)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:640 +0x4bb0\ngithub.com/urfave/cli/v2.(*Command).Run(0x2cd6580, 0xc00070e680)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x5dc\ngithub.com/urfave/cli/v2.(*App).RunContext(0xc00024f6c0, {0x1ef8d70?, 0xc000134000}, {0xc00012a000, 0x5, 0x5})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0xb7d\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 +0x46\nmain.main()\n\tgithub.com/docker-slim/docker-slim/cmd/slim/main.go:15 +0x18e\n" version="linux|Transformer|1.40.0|a4bb798922820523fceedb9121f5bcfdfc9f2901|2023-01-15_09:42:23PM"

np22-jpg avatar Mar 21 '23 06:03 np22-jpg

I would be interested in Podman Support too. I still get the same error:

time="2023-08-07T21:13:34+02:00" level=fatal msg="slim: failure" error="unexpected event type" stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x65\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn({0x228f340, 0xc0003e5080})\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:32 +0x5e\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/profile.OnCommand(_, _, {_, _}, _, {_, _}, {_, _}, {0x0, ...}, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/profile/handler.go:290 +0x1f6c\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/profile.glob..func1(0xc00027c740)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/profile/cli.go:284 +0x195e\ngithub.com/urfave/cli/v2.(*Command).Run(0x32539a0, 0xc00012af80)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x5dc\ngithub.com/urfave/cli/v2.(*App).RunContext(0xc000007a00, {0x22ac5b0?, 0xc000136000}, {0xc00012c000, 0x5, 0x5})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0xb7d\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 +0x46\nmain.main()\n\tgithub.com/docker-slim/docker-slim/cmd/slim/main.go:15 +0x18e\n" version="linux|Transformer|1.40.3|155f1b79556b7d100726f5ef4633f81a6ed27a2b|2023-07-13_07:46:40AM"

Is there any way one can help?

XSpielinbox avatar Aug 07 '23 19:08 XSpielinbox

I'm also interested. Has there been any progress on Podman support?

TylerJPresley avatar Nov 06 '23 18:11 TylerJPresley

podman on mac doesnt work :(

slim build nginx                                                                                                  admin@talos-vbox-cluster
cmd=build info=param.http.probe message='using default probe'
cmd=build state=started
cmd=build info=params target.image='nginx' continue.mode='probe' rt.as.user='true' keep.perms='true' tags='' image-build-engine='internal' target.type='image'
cmd=build state=image.inspection.start
cmd=build info=image id='sha256:81be38025439476d1b7303cb575df80e419fd1b3be4a639f3b3e51cf95720c7b' size.bytes='196211468' size.human='196 MB'
cmd=build info=image.stack index='0' name='docker.io/library/nginx:latest' id='sha256:<missing>'
cmd=build info=image.stack index='1' name='docker.io/library/nginx:latest' id='sha256:<missing>'
cmd=build info=image.stack index='2' name='docker.io/library/nginx:latest' id='sha256:<missing>'
cmd=build info=image.stack index='3' name='docker.io/library/nginx:latest' id='sha256:<missing>'
cmd=build info=image.stack index='4' name='docker.io/library/nginx:latest' id='sha256:81be38025439476d1b7303cb575df80e419fd1b3be4a639f3b3e51cf95720c7b'
cmd=build info=image.exposed_ports list='80'
cmd=build state=image.inspection.done
cmd=build state=container.inspection.start
cmd=build info=container status='created' name='slimk_14227_20231109130153' id='5683006f260caa2077aa224f39c408307832dfad931b89ffa94150edce0a603d'
cmd=build info=container status='running' name='slimk_14227_20231109130153' id='5683006f260caa2077aa224f39c408307832dfad931b89ffa94150edce0a603d'
cmd=build info=container message='obtained IP address' ip='10.88.0.5'
cmd=build info=cmd.startmonitor status='sent'
cmd=build info=event.startmonitor.done status='received.unexpected' data='&{Name:event.monitor.start.failed Data:<nil>}'
cmd=build info=report file='slim.report.json'
time="2023-11-09T14:01:53+01:00" level=fatal msg="slim: failure" error="unexpected event type" stack="goroutine 1 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x64\ngithub.com/docker-slim/docker-slim/pkg/util/errutil.FailOn({0x101f05908, 0x102f90510})\n\tgithub.com/docker-slim/docker-slim/pkg/util/errutil/errutil.go:32 +0x38\ngithub.com/docker-slim/docker-slim/pkg/app.(*ExecutionContext).FailOn(0x1400049cb00?, {0x101f05908?, 0x102f90510?})\n\tgithub.com/docker-slim/docker-slim/pkg/app/execontext.go:56 +0x44\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.OnCommand(_, _, {_, _}, _, {_, _}, {_, _}, {_, ...}, ...)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/handler.go:1130 +0x3ae4\ngithub.com/docker-slim/docker-slim/pkg/app/master/commands/build.glob..func1(0x140003d6f00)\n\tgithub.com/docker-slim/docker-slim/pkg/app/master/commands/build/cli.go:751 +0x4ac8\ngithub.com/urfave/cli/v2.(*Command).Run(0x102fa6560, 0x1400060c840)\n\tgithub.com/urfave/cli/[email protected]/command.go:163 +0x4a8\ngithub.com/urfave/cli/v2.(*App).RunContext(0x14000103a00, {0x101f238d8?, 0x1030224c0}, {0x140001901b0, 0x3, 0x3})\n\tgithub.com/urfave/cli/[email protected]/app.go:313 +0x808\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 +0x4c\nmain.main()\n\tgithub.com/docker-slim/docker-slim/cmd/slim/main.go:15 +0x194\n" version="darwin|Transformer|1.40.6|latest|latest"

MansM avatar Nov 09 '23 13:11 MansM