-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
5
-
False
-
-
False
-
rhel-container-tools
-
-
-
RUN 272
[1114658384] Upstream Reporter: Josh Bode
Upstream issue status: Closed
Upstream description:
/kind feature
Description
I am looking into whether it is possible to use Podman as a replacement for Docker with Python on Whales, a Python wrapper for the Docker CLI.
Things look great so far, however, one issue I discovered is that Podman doesn't implement the buildx inspect sub-command. The output of this command is parsed by python_on_whales and the required fields in the the output are Name and Driver (see https://github.com/gabrieldemarmiesse/python-on-whales/blob/4d5b8b4c5c6dc3ac0af5713e4fe5a72788f44cda/python_on_whales/components/buildx/models.py#L12)
Steps to reproduce the issue:
- Run podman buildx inspect
Describe the results you received:
$ podman buildx inspect Error: unrecognized command `podman buildx inspect` Try 'podman buildx --help' for more information.Describe the results you expected:
This is the equivalent output from docker:
$ docker buildx inspect Name: default Driver: docker Nodes: Name: default Endpoint: default Status: running Platforms: linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6Output of podman version:
$ podman version Version: 3.4.4 API Version: 3.4.4 Go Version: go1.16.13 Built: Tue Jan 1 11:00:00 1980 OS/Arch: linux/amd64Output of podman info --debug:
$ podman info --debug host: arch: amd64 buildahVersion: 1.23.1 cgroupControllers: - memory - pids cgroupManager: systemd cgroupVersion: v2 conmon: package: Unknown path: /nix/store/vpxdfaxp4jl64d6qrhpc23w3a0qr96ml-conmon-2.0.32/bin/conmon version: 'conmon version 2.0.32, commit: ' cpus: 8 distribution: codename: impish distribution: ubuntu version: "21.10" eventLogger: journald hostname: kruppe idMappings: gidmap: - container_id: 0 host_id: 1000 size: 1 - container_id: 1 host_id: 100000 size: 65536 uidmap: - container_id: 0 host_id: 1000 size: 1 - container_id: 1 host_id: 100000 size: 65536 kernel: 5.13.0-27-generic linkmode: dynamic logDriver: journald memFree: 1253212160 memTotal: 16422072320 ociRuntime: name: crun package: Unknown path: /nix/store/amzakhsy7nvq0d9cx352wlv9h4w2fbrr-crun-1.4.1/bin/crun version: |- crun version 1.4.1 commit: 1.4.1 spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL os: linux remoteSocket: path: /run/user/1000/podman/podman.sock security: apparmorEnabled: false capabilities: CAP_AUDIT_WRITE,CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_MKNOD,CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT rootless: true seccompEnabled: true seccompProfilePath: "" selinuxEnabled: false serviceIsRemote: false slirp4netns: executable: /nix/store/svfg9bk10x432b4p8napxkhzrv93wizf-slirp4netns-1.1.12/bin/slirp4netns package: Unknown version: |- slirp4netns version 1.1.12 commit: 7a104a101aa3278a2152351a082a6df71f57c9a3 libslirp: 4.6.1 SLIRP_CONFIG_VERSION_MAX: 3 libseccomp: 2.5.2 swapFree: 2131079168 swapTotal: 2147479552 uptime: 4h 7m 22.79s (Approximately 0.17 days) plugins: log: - k8s-file - none - journald network: - bridge - macvlan volume: - local registries: search: - docker.io store: configFile: /home/josh/.config/containers/storage.conf containerStore: number: 1 paused: 0 running: 0 stopped: 1 graphDriverName: overlay graphOptions: overlay.mount_program: Executable: /nix/store/p8sprv2pgkdvrylrvmbhk2njhgclz6nl-fuse-overlayfs-1.8.1/bin/fuse-overlayfs Package: Unknown Version: |- fuse-overlayfs: version 1.8.1 FUSE library version 3.10.5 using FUSE kernel interface version 7.31 graphRoot: /home/josh/.local/share/containers/storage graphStatus: Backing Filesystem: zfs Native Overlay Diff: "false" Supports d_type: "true" Using metacopy: "false" imageStore: number: 13 runRoot: /run/user/1000/containers volumePath: /home/josh/.local/share/containers/storage/volumes version: APIVersion: 3.4.4 Built: 315532800 BuiltTime: Tue Jan 1 11:00:00 1980 GitCommit: "" GoVersion: go1.16.13 OsArch: linux/amd64 Version: 3.4.4Package info (e.g. output of rpm -q podman or apt list podman):
$ nix-env --query --json podman-wrapper { "1": { "name": "podman-wrapper-3.4.4", "pname": "podman-wrapper", "version": "3.4.4", "system": "x86_64-linux", "meta": { "available": true, "broken": false, "changelog": "https://github.com/containers/podman/blob/v3.4.4/changelog.txt", "description": "A program for managing pods, containers and container images", "homepage": "https://podman.io/", "insecure": false, "license": { "deprecated": false, "free": true, "fullName": "Apache License 2.0", "redistributable": true, "shortName": "asl20", "spdxId": "Apache-2.0", "url": "https://spdx.org/licenses/Apache-2.0.html" }, "maintainers": [ { "email": "marsam@users.noreply.github.com", "github": "marsam", "githubId": 65531, "name": "Mario Rodas" }, { "email": "adisbladis@gmail.com", "github": "adisbladis", "githubId": 63286, "matrix": "@adis:blad.is", "name": "Adam Hose" }, { "email": "mail@saschagrunert.de", "github": "saschagrunert", "githubId": 695473, "name": "Sascha Grunert" }, { "email": "vincent@sbr.pm", "github": "vdemeester", "githubId": 6508, "name": "Vincent Demeester" }, { "email": "59103226+zowoq@users.noreply.github.com", "github": "zowoq", "githubId": 59103226, "name": "zowoq" }, { "email": "wael.nasreddine@gmail.com", "github": "kalbasit", "githubId": 87115, "matrix": "@kalbasit:matrix.org", "name": "Wael Nasreddine" } ], "name": "podman-3.4.4", "outputsToInstall": [ "out", "man" ], "platforms": [ "i686-cygwin", "x86_64-cygwin", "x86_64-darwin", "i686-darwin", "aarch64-darwin", "armv7a-darwin", "i686-freebsd", "x86_64-freebsd", "x86_64-solaris", "aarch64-linux", "armv5tel-linux", "armv6l-linux", "armv7a-linux", "armv7l-linux", "i686-linux", "m68k-linux", "mipsel-linux", "powerpc64-linux", "powerpc64le-linux", "riscv32-linux", "riscv64-linux", "s390-linux", "s390x-linux", "x86_64-linux", "aarch64-netbsd", "armv6l-netbsd", "armv7a-netbsd", "armv7l-netbsd", "i686-netbsd", "m68k-netbsd", "mipsel-netbsd", "powerpc-netbsd", "riscv32-netbsd", "riscv64-netbsd", "x86_64-netbsd", "i686-openbsd", "x86_64-openbsd", "x86_64-redox" ], "position": "/nix/store/j5qs10s8p002r50jhd3p0jnxpgwd4np5-nixpkgs-22.05pre348320.cc68710784f/nixpkgs/pkgs/applications/virtualization/podman/default.nix:89", "unfree": false, "unsupported": false } } }
Upstream URL: https://github.com/containers/podman/issues/13014
- links to