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
{{ message }}
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Hey @schinnaswamy 👋 Thanks for reporting and sorry you've run into trouble. Is podman CLI compatible with docker CLI? Did you try aliasing locally podman to docker? Plugin uses docker pretty transparently, so as long as the API is the same, it should work just fine, I'm not using podman personally so it's hard for me to verify at the moment.
Yes I tried aliasing Podman to docker. But after making couple of modifications in the following .js files and removing :z from bind path syntax in the docker run command since Podman has some issues with extended attribute was getting error
lsetxattr /: operation not supported
Step 1:
alias docker=podman
Even though I have added alias but still for some reason the command was trying to connect to the docker daemon via API.
So I have to modify explicitly the following js files in the serverless-python-requirements
Hey @schinnaswamy - thanks a lot for more details. That's interesting that the compatibility doesn't seem to be universal, at least in case of use via the plugin. I will try to find some time to run it myself via podman, but I cannot promise anything concrete right now. I would like to avoid having specific code modifications for podman if possible to reduce complexity on plugin side
Activity
pgrzesik commentedon Feb 24, 2024
Hey @schinnaswamy 👋 Thanks for reporting and sorry you've run into trouble. Is
podmanCLI compatible withdockerCLI? Did you try aliasing locallypodmantodocker? Plugin usesdockerpretty transparently, so as long as the API is the same, it should work just fine, I'm not usingpodmanpersonally so it's hard for me to verify at the moment.schinnaswamy commentedon Feb 26, 2024
@pgrzesik
Thanks for looking at the issue.
Yes I tried aliasing Podman to docker. But after making couple of modifications in the following .js files and removing :z from bind path syntax in the docker run command since Podman has some issues with extended attribute was getting error
lsetxattr /: operation not supportedStep 1:
alias docker=podmanEven though I have added alias but still for some reason the command was trying to connect to the docker daemon via API.
So I have to modify explicitly the following js files in the serverless-python-requirements
Step 2 : Modified docker.js Line No : 13.
const cmd = 'podman';Step 3: Modified pip.js Line No: 269 & 371 & 416
dockerCmd.push('podman', 'run', '--rm', '-v',${bindPath}:/var/task);case 'podman':if (cmd === 'podman' && e.stderrBuffer) {Step 4: Removed :z in the pip.js file [ Line No: 269, 278, 280, 282 & 311 ]
With the above following modifications managed to run the serverless deploy with Python requirements without any issues.
pgrzesik commentedon Mar 3, 2024
Hey @schinnaswamy - thanks a lot for more details. That's interesting that the compatibility doesn't seem to be universal, at least in case of use via the plugin. I will try to find some time to run it myself via
podman, but I cannot promise anything concrete right now. I would like to avoid having specific code modifications forpodmanif possible to reduce complexity on plugin sideconnorhsm commentedon Jul 10, 2024
Also experiencing this, found a simpler workaround is to symlink docker to Podman.
sudo ln -s /opt/homebrew/bin/podman /usr/local/bin/docker