Mirror synchronization in Docker swarm cluster.

  docker, question

Docker swarm management uses docker build to generate a mirror image. I intend to use docker service create to create a container for the generated mirror image to other swarm clusters. It is found that the generated mirror image will not be sent to other clusters. Other nodes will fail to create the container. Prompt: No such image:xxx:xxxx: XXXX, is there any solution?
docker service create –name swarmtest -p 998:8080 –replicas 2 –network ingress –detach=false test:v01

clipboard.png

  1. Upload the image to docker hub or private clothing.

  2. Build on several machines at the same time

  3. Export scp to be imported again