How to set image label "nerdctl/platform" when commit a container? #1052
-
When I commit a container, it reports: WARN[0000] Image lacks label "nerdctl/platform", assuming the platform to be "linux/amd64" However, I don't found a flag to set label. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Please provide a reproducible way, and what is your environment, VM or host? |
Beta Was this translation helpful? Give feedback.
-
You are commting a container, If this container is previously running without platform labels then the commit can't find this label and will set default platform label ( which is the platform that you are running on) . So to avoid this message try to create/run you container with |
Beta Was this translation helpful? Give feedback.
You are commting a container, If this container is previously running without platform labels then the commit can't find this label and will set default platform label ( which is the platform that you are running on) . So to avoid this message try to create/run you container with
--platform
flag