Docker Swarm Distribute Build Image

Situation:

I have a docker swarm with two agents. The docker swarm main daemon runs on my manager host (docker-machine example setup) with --strategy random option.

  • Confusion while deploying docker-composer image
  • Jupyter kernel dead
  • Docker for GUI-based environments?
  • Dropbox Docker Container not Syncing
  • The docker compose will remain legacy volumes and couldn't now clear them
  • oAuth 2 implementation before moving google container
  • Steps:

    • I build a new docker image using the docker swarm manager connection
      docker -H tcp://$(docker-machine ip manager):3376 build -t test123 .

    • I startup multiple containers using the manager connection

      docker -H tcp://$(docker-machine ip manager):3376 run -d test123 sleep 20
      docker -H tcp://$(docker-machine ip manager):3376 run -d test123 sleep 20
      docker -H tcp://$(docker-machine ip manager):3376 run -d test123 sleep 20
      docker -H tcp://$(docker-machine ip manager):3376 run -d test123 sleep 20

    The docker container is always executed on the host which was also used for building the image.

    Is there a way to automatically distribute the build image to other hosts?

    I know that i could use a docker registry and just push and pull the image but i want to avoid this.

    Another solution i found was to save the image to a tgz and import it. A import on a docker-swarm host (manager) automatically distributes the image to all agents. (at least this was what i observed)

    Is there maybe another option?

  • call a docker container from another container
  • Increase the default disc space for Docker Images on macOS
  • Docker Ubuntu build that includes 'apt-get update'
  • Repeated “checking for a bsd-compatible install …” step running ./configure in docker container with debian jessie
  • How to designate specific versions of e.g. Ubuntu containers?
  • Docker application support in Hadoop YARN
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.