-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create network --label and run --restart unless-stopped are not compatible with Docker. #7989
Comments
I think you should try with the latest version, maybe you need update your repo, and install the latest podman by your package command |
We still don't support labels on networks (going to need the network
rewrite for that) but unless-stopped was added (I want to say in 2.x?).
…On Sat, Oct 10, 2020, 06:04 zhangguanzhang ***@***.***> wrote:
I think you should try with the latest version, maybe you need update your
repo, and install the latest podman by your package command
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7989 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCBQ6SNXVBDZLOJXWTTSKAWSNANCNFSM4SK6BY7Q>
.
|
A friendly reminder that this issue had no activity for 30 days. |
@mheon What is stopping us from adding --label to the network now? |
No place to store them. We only store networks as CNI conflist files, and there is no provision for storing a label in those files (and no provision for comments, so we can't hack them in easily either) |
@mheon should we add this data to database then? |
That's what we have to do - the "network rewrite" I keep talking about it basically moving network logic inside Libpod so we can use the DB to store information on a network and lessen our dependence on CNI for what we do and do not support. Doing it right is probably a sprint worth of work, minimum, for a team member, though. I'd be happy to take it on early next year once volume plugins are done if the priorities work out right. |
@HarriL @afbjorklund @mheon Have we gotten any closer on this one? |
Network label support has been added to master, we can close
…On Thu, Dec 24, 2020 at 06:22 Daniel J Walsh ***@***.***> wrote:
@HarriL <https://github.com/HarriL> @afbjorklund
<https://github.com/afbjorklund> @mheon <https://github.com/mheon> Have
we gotten any closer on this one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7989 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCCIHAJWHA2I7HOC6I3SWMP6LANCNFSM4SK6BY7Q>
.
|
Description
/kind bug
You can not just install podman-docker and expect podman to be compatible.
I installed podman-docker and got four compatibility issues from a Docker compatible installation kit.
1. Build Bridge
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: unknown flag: --label
2. Start container1
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: the unless-stopped restart policy is not supported: invalid argument
3. Start container2
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: the unless-stopped restart policy is not supported: invalid argument
4. Start container3
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Error: the unless-stopped restart policy is not supported: invalid argument
Steps to reproduce the issue:
Describe the results you received:
3. Error: unknown flag: --label
4. Error: the unless-stopped restart policy is not supported: invalid argument
Describe the results you expected:
3. Accept metadata "abc" and "zyz" in the network container as Docker defines and as other type of containers does.
4. The error message is wrong, this is not a restart. Actually this is not restart ! And Podman already works as this argument asks it to do! This argument means that after the "podman stop" command do not start this container in a reboot. And that is how podman works already. Remove the error and just do nothing. This way the behavior of podman is correct and the argument is handled "correctly".
Additional information you deem important (e.g. issue happens only occasionally):
Case 1: docker network create --label abc --label xyz target-name
Raises error:
Expected to handle metadata argument(s):
--label argument1 --label argument2
Docker definition: Link to Docker CLI reference
The second one seems to be a misunderstanding of what does Docker's argument unless-stopped really means/does.
Case 2: docker run ... --restart unless-stopped ...
Raises error:
NOTE: the community has misunderstood what this argument does and means! it is related to docker stop and nothing to with Docker Engine! It means that if you have stopped a container it does not restart the container automatically after reboot!
Expected to not raise an error, but instead, just ignore this argument in Podman without raising an error!
Root cause: Podman does not start containers automatically after reboot as Docker does and that is the same that Docker unless-stopped does in Docker!
Reasoning: It is annoying to get correct "unless-stopped" behavior natively by Podman and at the same time it does raise an error on the argument that askes literally to do that!
Environment
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
The text was updated successfully, but these errors were encountered: