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
Describe the bug
When docker-compose.yml use extends tag what loads config by file tag from docker-compose-general.yml file for first service from docker-compose.yml - sh works well, but for second ci-dev-sh not. It means that incorrectly recognize docker image for second service - ci-dev-sh and does not inherit mounts from sh.
Expected mount inherited from sh service: -v /tmp/service_sh:/tmp/service_sh:rw.
Actual behavior for 2nd command podman run --name=slawek_ci-dev-sh_tmp43794 --rm -i --pod=pod_slawek --label io.podman.compose.config-hash=ff28310f0c2bb389c418e1a834ea9801adacc3f014ac99dabed617361ca2278f --label io.podman.compose.project=slawek --label io.podman.compose.version=1.0.4 --label com.docker.compose.project=slawek --label com.docker.compose.project.working_dir=/home/slawek --label com.docker.compose.project.config_files=docker-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=ci-dev-sh -v /tmp/service_ci-dev-sh:/tmp/service_ci-dev-sh:rw --net slawek_default --network-alias ci-dev-sh --tty slawek_ci-dev-sh sh
Bad docker image. Is: slawek_ci-dev-sh, should be: busybox
Missing mount -v /tmp/service_sh:/tmp/service_sh:rw - looks like not inherited from service sh.
Output
$ podman-compose version # Version from 29.03.2022
podman-compose version: 1.0.4
['podman', '--version', '']
using podman version: 3.4.2
podman-composer version 1.0.4
podman --version
podman version 3.4.2
exit code: 0
As you can see podman-compose is still picking up the old folder /var/mnt/shared/apps/docker/qbittorrent/config which is removed by now. The OS was restarted as well prior to this command execution.
It's almost like the previous versions of the config were appended.
Describe the bug
When
docker-compose.yml
useextends
tag what loads config byfile
tag fromdocker-compose-general.yml
file for first service fromdocker-compose.yml
-sh
works well, but for secondci-dev-sh
not. It means that incorrectly recognize docker image for second service -ci-dev-sh
and does not inherit mounts fromsh
.To Reproduce
Steps to reproduce the behavior:
docker-compose.yml
file with content:docker-compose-general.yml
file with content:podman-compose run --rm sh sh
podman-compose run --rm ci-dev-sh sh
1st command works as expected - started sh service:
podman run --name=slawek_sh_tmp50285 --rm -i --pod=pod_slawek --label io.podman.compose.config-hash=ff28310f0c2bb389c418e1a834ea9801adacc3f014ac99dabed617361ca2278f --label io.podman.compose.project=slawek --label io.podman.compose.version=1.0.4 --label com.docker.compose.project=slawek --label com.docker.compose.project.working_dir=/home/slawek --label com.docker.compose.project.config_files=docker-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=sh -v /tmp/service_sh:/tmp/service_sh:rw --net slawek_default --network-alias sh --tty busybox sh
Expected behavior for 2nd command
podman run --name=slawek_ci-dev-sh_tmp43794 --rm -i --pod=pod_slawek --label io.podman.compose.config-hash=ff28310f0c2bb389c418e1a834ea9801adacc3f014ac99dabed617361ca2278f --label io.podman.compose.project=slawek --label io.podman.compose.version=1.0.4 --label com.docker.compose.project=slawek --label com.docker.compose.project.working_dir=/home/slawek --label com.docker.compose.project.config_files=docker-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=ci-dev-sh -v /tmp/service_sh:/tmp/service_sh:rw -v /tmp/service_ci-dev-sh:/tmp/service_ci-dev-sh:rw --net slawek_default --network-alias ci-dev-sh --tty busybox sh
busybox
.sh
service:-v /tmp/service_sh:/tmp/service_sh:rw
.Actual behavior for 2nd command
podman run --name=slawek_ci-dev-sh_tmp43794 --rm -i --pod=pod_slawek --label io.podman.compose.config-hash=ff28310f0c2bb389c418e1a834ea9801adacc3f014ac99dabed617361ca2278f --label io.podman.compose.project=slawek --label io.podman.compose.version=1.0.4 --label com.docker.compose.project=slawek --label com.docker.compose.project.working_dir=/home/slawek --label com.docker.compose.project.config_files=docker-compose.yml --label com.docker.compose.container-number=1 --label com.docker.compose.service=ci-dev-sh -v /tmp/service_ci-dev-sh:/tmp/service_ci-dev-sh:rw --net slawek_default --network-alias ci-dev-sh --tty slawek_ci-dev-sh sh
slawek_ci-dev-sh
, should be:busybox
-v /tmp/service_sh:/tmp/service_sh:rw
- looks like not inherited from servicesh
.Output
Environment:
The text was updated successfully, but these errors were encountered: