How I use a local container in a swarm cluster

A colleague find out Docker and want to use it for our project. I start to use Docker for test. After reading an article about Docker swarm I want to test it.

I have installed 3 VM (ubuntu server 14.04) with docker and swarm. I followed some How To ( http://blog.remmelt.com/2014/12/07/docker-swarm-setup/ and http://devopscube.com/docker-tutorial-getting-started-with-docker-swarm/). My cluster work. I can launch for exemple a basic apache container (the image was pull in the Docker hub) but I want to use my own image (an apache server with my web site).

  • What is the difference between CMD and ENTRYPOINT in a Dockerfile?
  • Filter docker images by name
  • can't save docker images
  • How to docker-compose run in windows?
  • Why does `apt install postgresql` not work in a docker container?
  • Connect Docker Containers: Frontend to GraphQL Backend via Docker Compose on the same Host
  • I tested to load an image (after save it in a .tar) but this option isn’t supported by the clustering mode, same thing with the import option.

    So my question is : Can I use my own image without to push it in the Docker hub and how I do this ?

  • QGIS-Server Plugin Process per client (WMS)
  • running docker remotely on openvz
  • Gitlab, docker and sendmail ports
  • Unable to create docker virtual machine
  • mongodb replica set master “stateStr” : “REMOVED”
  • Starting Docker Daemon Through Ansible
  • One Solution collect form web for “How I use a local container in a swarm cluster”

    If your own image is based on a Dockerfile that you build you can execute the build command on your project while targeting the swarm.

    However if the image wasn’t built, but created manually you need to have a registry in between that you can push to, either docker hub or some other registry solution like https://github.com/docker/docker-registry

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.