Cannot replace new version due to nerdctl file being used #1949
-
| DescriptionThe nerdctl file cannot be replaced, and the error is as follows: ~]# for i in $(lsof -t /usr/local/bin/nerdctl); do cat /proc/${i}/cmdline && echo ; done
/usr/local/bin/nerdctl_NERDCTL_INTERNAL_LOGGING/var/lib/nerdctl/1935db59
/usr/local/bin/nerdctl_NERDCTL_INTERNAL_LOGGING/var/lib/nerdctl/1935db59
/usr/local/bin/nerdctl_NERDCTL_INTERNAL_LOGGING/var/lib/nerdctl/1935db59
/usr/local/bin/nerdctl_NERDCTL_INTERNAL_LOGGING/var/lib/nerdctl/1935db59Steps to reproduce the issue
 The nerdctl file cannot be replaced, and the error is as follows: Describe the results you received and expectedThe CLI should not be used by any process for a long time We upgrade CLI version, should not stop all containers What version of nerdctl are you using?nerdctl version 1.1.0 Are you using a variant of nerdctl? (e.g., Rancher Desktop)None Host informationClient: Server: WARNING: No swap limit support | 
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
| Please stop all containers before upgrading | 
Beta Was this translation helpful? Give feedback.
-
| 
 Can nerdctl not be used in a production environment? | 
Beta Was this translation helpful? Give feedback.
-
| 
 You can use in production, and you have to stop containers before upgrading. | 
Beta Was this translation helpful? Give feedback.
-
| The production environment cannot stop the container at will. A CLI should not occupy itself all the time | 
Beta Was this translation helpful? Give feedback.
-
| 
 It's still recommended to stop containers before upgrading though. | 
Beta Was this translation helpful? Give feedback.
cp -fseems to work.Or
rmbeforecp.It's still recommended to stop containers before upgrading though.