Docker-compose: deploying service in multiple hosts

We can do this with docker compose v3 now. https://docs.docker.com/engine/swarm/#feature-highlights https://docs.docker.com/compose/compose-file/ You have to initialize the swarm cluster using command $ docker swarm init You can add more nodes as worker or manager – https://docs.docker.com/engine/swarm/join-nodes/ Once you have your both nodes added to the cluster, pass your compose v3 i.e deployment file to create a … Read more

Using an IDE while developing on a docker container

Updates: 2018/04/17: http://docker-sync.io/ 2018/03/18: Check skaffold from GoogleCloudPlatform. Original post: There is something that I am not getting when developing an application while using docker containers. It’s ok, this is not something trivial. Try to see the big picture, it’s about creating a Development Pipeline (or CI/CD Pipeline if you like to use the terms … Read more

dockerd vs docker-containerd vs docker-runc vs docker-containerd-ctr vs docker-containerd-shim

dockerd – The Docker daemon itself. The highest level component in your list and also the only ‘Docker’ product listed. Provides all the nice UX features of Docker. (docker-)containerd – Also a daemon, listening on a Unix socket, exposes gRPC endpoints. Handles all the low-level container management tasks, storage, image distribution, network attachment, etc… (docker-)containerd-ctr … Read more

What’s the difference between a stack file and a Compose file?

Conceptually, both files serve the same purpose – deployment and configuration of your containers on docker engines. Docker-compose tool was created first and its purpose is “for defining and running multi-container Docker applications” on a single docker engine. (see docker compose overview ) You use docker-compose up to create/update your containers, networks, volumes and so … Read more

docker swarm how to find out why service can’t start

I found one handy solution to the problem. docker service ps –no-trunc {serviceName} which will show errors with downloading images, mounting nfs volumes amongst others. ———————- UPDATE Not all errors can be found in the way described above. Another usefull tool is looking at the docker deamon logs which can be done the follwing way … Read more

When to use Docker-Compose and when to use Docker-Swarm

It will probably help to start with a few definitions: docker-compose: Command used to configure and manage a group of related containers. It is a frontend to the same api’s used by the docker cli, so you can reproduce it’s behavior with commands like docker run. docker-compose.yml: Definition file for a group of containers, used … Read more