profile
viewpoint

Ask questions"docker stack deploy">"rpc error: code = 3 desc = name must be valid as a DNS name component"

[root@master busybox]# docker stack deploy -c docker-compose.yml test Creating service test_busybox1.24 Error response from daemon: rpc error: code = 3 desc = name must be valid as a DNS name component

[root@master busybox]# cat docker-compose.yml version: "3" services: busybox1.24: image: hub.c.163.com/library/busybox:1.24

Thanks!

moby/moby

Answer questions akki

Also, it cannot end with an _ as I found out today. Hope that saves someone else's time 😅

Related questions

start container failed with "failed to umount /var/lib/docker/containers/.../shm: no such file or directory" hot 65
start container failed with "failed to umount /var/lib/docker/containers/.../shm: no such file or directory" hot 29
upgrade docker-18.09.2-ce , shim.sock: bind: address already in use: unknown hot 27
runc regression - EPERM running containers from selinux hot 16
Windows Server 2019 publish ports in swarm not working hot 14
Error response from daemon: rpc error: code = DeadlineExceeded desc = context deadline exceeded hot 13
Swarm restarts all containers hot 11
integration: "error reading the kernel parameter" errors during CI hot 10
write unix /var/run/docker.sock->@: write: broken pipe hot 10
hcsshim::PrepareLayer failed in Win32: The parameter is incorrect hot 10
OCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknown hot 9
Docker 18.09.1 doesn't work with iptables v1.8.2 hot 9
dockerd stopped responding to API requests; no installed keys could decrypt message hot 9
manifest invalid error when pushing image to quay.io hot 8
Containers on overlay network cannot reach other containers hot 7
Github User Rank List