How to use docker images from Docker Desktop on WSL2 using podman? #16020
Replies: 3 comments 7 replies
-
Normally you would use something like |
Beta Was this translation helpful? Give feedback.
-
Inside of the linux VM you can do podman pull docker-daemon:image |
Beta Was this translation helpful? Give feedback.
-
@YevheniiPokhvalii , I was trying to do a very similar thing while working with docker containers I had spun up in WSL Ubuntu. I tried However, this worked very nicely:
Note that I needed to redirect the file output to my WSL home directory with '~/.' Otherwise I got permission denied errors. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am totally new to podman and I'm trying to move from docker to podman on WSL2, because podman does not depend on the deamon.
What I discovered is that podman uses user HOME folder to store images and containers there.
By default:
I managed to locate Docker Desktop images in:
I found somewhere in the internet that you can indicate the path to images to podman with something like that:
That did not work for me. Moreover that command changed ownership of a couple of directories and I was not able to use podman without root. So I changed the ownership to the user to get it back to work as before.
It is important for me to have Docker Desktop and Podman that can work interchangeably.
Could you give any clear instructions on how to feed Docker Desktop images on WSL2 to podman? I haven't yet managed to find any working solution.
Beta Was this translation helpful? Give feedback.
All reactions