Replies: 1 comment 3 replies
-
Explicitly allowed:
The ID has to be unique, but the name does not. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I created two containers with the same name when running two identical nerdctl run commands. Is this allowed?
Steps to reproduce the issue
1.Create a container
nerdctl run -d --hostname rabbitmq-1-244 --name rabbitmq-1-244 -e RABBITMQ_DEFAULT_USER="admin" -e RABBITMQ_DEFAULT_PASS="admin" -e RABBITMQ_DEFAULT_VHOST=/ --restart=always -p "4369:4369" -p "5672:5672" -p "15672:15672" -p "25672:25672" -p"15692:15692" -v /data/rabbitmq/:/var/lib/rabbitmq arm64v8/rabbitmq:3.9.11-management
2.Create another identical container
nerdctl run -d --hostname rabbitmq-1-244 --name rabbitmq-1-244 -e RABBITMQ_DEFAULT_USER="admin" -e RABBITMQ_DEFAULT_PASS="admin" -e RABBITMQ_DEFAULT_VHOST=/ --restart=always -p "4369:4369" -p "5672:5672" -p "15672:15672" -p "25672:25672" -p"15692:15692" -v /data/rabbitmq/:/var/lib/rabbitmq arm64v8/rabbitmq:3.9.11-management
Describe the results you received and expected
You should be prompted that the container name is duplicated or something like that.
What version of nerdctl are you using?
nerdctl version 1.5.0
containerd-1.6.10-linux-arm64
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
[root@node1 ~]# uname -a
Linux node1 5.10.0-153.27.0.103.oe2203sp2.aarch64 #1 SMP Wed Sep 13 19:04:10 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
[root@node1 ~]# nerdctl -v
nerdctl version 1.5.0
[root@node1 ~]# ctr -v
ctr github.com/containerd/containerd v1.6.10
Beta Was this translation helpful? Give feedback.
All reactions