You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works(I use custom docker socket for clarity): docker -H unix:///var/opt/custom/docker.sock run -v /var/opt/custom/docker.sock:/var/run/docker.sock -e RYUK_PORT=8080 -p 8080:8080 docker.io/testcontainers/ryuk:0.5.1
This does not: podman -H unix:///run/user/1000/podman/podman.sock run -v /run/user/1000/podman/podman.sock:/var/run/docker.sock -e RYUK_PORT=8080 -p 8080:8080 docker.io/testcontainers/ryuk:0.5.1
Describe the results you received
2023/09/29 13:02:07 Pinging Docker...
panic: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied
goroutine 1 [running]:
main.main()
/app/main.go:131 +0x431
Describe the results you expected
$ docker -H unix:///var/opt/custom/docker.sock run -v /var/opt/custom/docker.sock:/var/run/docker.sock -e RYUK_PORT=8080 -p 8080:8080 docker.io/testcontainers/ryuk:0.5.1
2023/09/29 13:05:37 Pinging Docker...
2023/09/29 13:05:37 Docker daemon is available!
2023/09/29 13:05:37 Starting on port 8080...
2023/09/29 13:05:37 Started!
podman info output
host:
arch: amd64buildahVersion: 1.31.2cgroupControllers:
- cpu
- io
- memory
- pidscgroupManager: systemdcgroupVersion: v2conmon:
package: conmon-2.1.7-2.fc38.x86_64path: /usr/bin/conmonversion: 'conmon version 2.1.7, commit: 'cpuUtilization:
idlePercent: 94.29systemPercent: 1userPercent: 4.71cpus: 8databaseBackend: boltdbdistribution:
distribution: fedoravariant: workstationversion: "38"eventLogger: journaldfreeLocks: 1973hostname: localhost.localdomainidMappings:
gidmap:
- container_id: 0host_id: 1000size: 1
- container_id: 1host_id: 100000size: 65536uidmap:
- container_id: 0host_id: 1000size: 1
- container_id: 1host_id: 100000size: 65536kernel: 6.5.5-200.fc38.x86_64linkmode: dynamiclogDriver: journaldmemFree: 11582849024memTotal: 33378213888networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.7.0-1.fc38.x86_64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.7.0package: netavark-1.7.0-1.fc38.x86_64path: /usr/libexec/podman/netavarkversion: netavark 1.7.0ociRuntime:
name: crunpackage: crun-1.9-1.fc38.x86_64path: /usr/bin/crunversion: |- crun version 1.9 commit: a538ac4ea1ff319bcfe2bf81cb5c6f687e2dc9d3 rundir: /run/user/1000/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20230908.g05627dc-1.fc38.x86_64version: | pasta 0^20230908.g05627dc-1.fc38.x86_64 Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: truepath: /run/user/1000/podman/podman.socksecurity:
apparmorEnabled: falsecapabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOTrootless: trueseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: trueserviceIsRemote: falseslirp4netns:
executable: /usr/bin/slirp4netnspackage: slirp4netns-1.2.1-1.fc38.x86_64version: |- slirp4netns version 1.2.1 commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194 libslirp: 4.7.0 SLIRP_CONFIG_VERSION_MAX: 4 libseccomp: 2.5.3swapFree: 8589930496swapTotal: 8589930496uptime: 6h 18m 23.00s (Approximately 0.25 days)plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
registry.access.redhat.com:
Blocked: falseInsecure: trueLocation: registry.access.redhat.comMirrorByDigestOnly: falseMirrors: nullPrefix: registry.access.redhat.comPullFromMirror: ""search:
- docker.io
- registry.fedoraproject.org
- registry.access.redhat.com
- quay.iostore:
configFile: /home/<...>/.config/containers/storage.confcontainerStore:
number: 7paused: 0running: 0stopped: 7graphDriverName: overlaygraphOptions: {}graphRoot: /home/<...>/.local/share/containers/storagegraphRootAllocated: 510965841920graphRootUsed: 350122725376graphStatus:
Backing Filesystem: btrfsNative Overlay Diff: "true"Supports d_type: "true"Using metacopy: "false"imageCopyTmpDir: /var/tmpimageStore:
number: 341runRoot: /run/user/1000/containerstransientStore: falsevolumePath: /home/<...>/.local/share/containers/storage/volumesversion:
APIVersion: 4.6.2Built: 1694549242BuiltTime: Tue Sep 12 22:07:22 2023GitCommit: ""GoVersion: go1.20.7Os: linuxOsArch: linux/amd64Version: 4.6.2
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Podman runs on an ordinary physical machine (laptop)
Additional information
Docker is run on a cloud VM, docker info ($ docker -H unix:///var/opt/custom/docker.sock info) results:
You would need to disable selinux for the container if you want to leak the podman socket, i.e. --security-opt label=disable to the podman run command.
Issue Description
Ryuk container[1] which is essential for testcontainers library can not be started when using podman.
[1] https://hub.docker.com/r/testcontainers/ryuk
Steps to reproduce the issue
This works(I use custom docker socket for clarity):
docker -H unix:///var/opt/custom/docker.sock run -v /var/opt/custom/docker.sock:/var/run/docker.sock -e RYUK_PORT=8080 -p 8080:8080 docker.io/testcontainers/ryuk:0.5.1
This does not:
podman -H unix:///run/user/1000/podman/podman.sock run -v /run/user/1000/podman/podman.sock:/var/run/docker.sock -e RYUK_PORT=8080 -p 8080:8080 docker.io/testcontainers/ryuk:0.5.1
Describe the results you received
Describe the results you expected
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Podman runs on an ordinary physical machine (laptop)
Additional information
Docker is run on a cloud VM, docker info (
$ docker -H unix:///var/opt/custom/docker.sock info
) results:The text was updated successfully, but these errors were encountered: