podman: Compose V2: Cannot run docker-compose if a container uses `build:`
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
If any container has a build:
directive, docker-compose
fails to start.
Steps to reproduce the issue:
FROM alpine:latest
RUN echo 1
services:
test:
build: .
command: ls /app
Describe the results you received:
$ docker-compose up
[+] Building 0.0s (0/0)
failed to get status: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing unable to upgrade to h2c, received 404"
Describe the results you expected:
This should build and run.
Additional information you deem important (e.g. issue happens only occasionally):
Works fine with docker-compose.
Output of podman version
:
$ podman --version
dpodman version 3.4.0
$ docker-compose --version
Docker Compose version 2.0.1
Output of podman info --debug
:
host:
arch: amd64
buildahVersion: 1.23.1
cgroupControllers: []
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: /usr/bin/conmon is owned by conmon 1:2.0.30-1
path: /usr/bin/conmon
version: 'conmon version 2.0.30, commit: 2792c16f4436f1887a7070d9ad99d9c29742f38a'
cpus: 8
distribution:
distribution: arch
version: unknown
eventLogger: journald
hostname: victory
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65537
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65537
kernel: 5.14.9-arch2-1
linkmode: dynamic
logDriver: journald
memFree: 234930176
memTotal: 16462659584
ociRuntime:
name: crun
package: /usr/bin/crun is owned by crun 1.1-1
path: /usr/bin/crun
version: |-
crun version 1.1
commit: 5b341a145c4f515f96f55e3e7760d1c79ec3cf1f
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +YAJL
os: linux
remoteSocket:
exists: true
path: /run/user/1000/podman/podman.sock
security:
apparmorEnabled: false
capabilities: 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_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /etc/containers/seccomp.json
selinuxEnabled: false
serviceIsRemote: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: /usr/bin/slirp4netns is owned by slirp4netns 1.1.12-1
version: |-
slirp4netns version 1.1.12
commit: 7a104a101aa3278a2152351a082a6df71f57c9a3
libslirp: 4.6.1
SLIRP_CONFIG_VERSION_MAX: 3
libseccomp: 2.5.2
swapFree: 19307757568
swapTotal: 34343288832
uptime: 15h 3m 4.92s (Approximately 0.62 days)
plugins:
log:
- k8s-file
- none
- journald
network:
- bridge
- macvlan
volume:
- local
registries:
search:
- docker.io
store:
configFile: /home/hugo/.config/containers/storage.conf
containerStore:
number: 18
paused: 0
running: 0
stopped: 18
graphDriverName: overlay
graphOptions: {}
graphRoot: /home/hugo/.local/share/containers/storage
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "true"
Supports d_type: "true"
Using metacopy: "false"
imageStore:
number: 30
runRoot: /run/user/1000/containers
volumePath: /home/hugo/.local/share/containers/storage/volumes
version:
APIVersion: 3.4.0
Built: 1633083258
BuiltTime: Fri Oct 1 12:14:18 2021
GitCommit: 6e8de00bb224f9931d7402648f0177e7357ed079
GoVersion: go1.17.1
OsArch: linux/amd64
Version: 3.4.0
Package info (e.g. output of rpm -q podman
or apt list podman
):
Podman 3.4.0-1 (Arch package).
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical host, running rootless.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 17 (4 by maintainers)
For anyone else encountering this issue: The resolution seems to currently be downgrading to
docker-compose
v2.2.3
On macOS the downgrade can be performed like this:
As of the time of this writing the
"transport: Error while dialing unable to upgrade to h2c, received 404"
seems to affect most versions afterv2.2.3
up to and includingv2.4.1