Docker - Swarm
Which of the following is the correct syntax to create a service with 3 replicas and publish port 80 to 8080?
--replicas 3 and --publish 8080:80 to map port 8080 on the host to port 80 in the container.hostPort:containerPort, so 8080:80 is correct. Options B, C, and D have wrong order or syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions