Public bug reported:

The podman package currently (5.0.3+ds1-5ubuntu1 on Oracular) installs
profile drop-ins that set the DOCKER_HOST environment variable to point
at the Podman socket.

As a consequence, when Docker and Podman are installed alongside,
'docker image ls' includes the user's Podman images.  Unless the user
also installed the 'podman-docker' package, this is unexpected
behaviour.[1] Worse, running 'docker rm' will remove their _Podman_
images.

This would be perfectly expected behaviour when the podman-docker
package is installed, not when podman and docker are installed side-by-
side.

The purpose of setting DOCKER_HOST to the Podman socket appears to be
solely "to migrate transparently from Docker to Podman Desktop on all
platforms."[2]

The simple fix then us to move these profile drop-ins from the podman
package to the podman-docker package.

Cheers
Marco

[1] https://stackoverflow.com/q/79155219/2109137
[2] 
https://podman-desktop.io/docs/migrating-from-docker/using-the-docker_host-environment-variable

** Affects: libpod (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2096694

Title:
  Move /etc/profile.d/podman-docker.{sh,csh} to podman-docker package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2096694/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to