docker-swarm
sudo: docker-machine: command not found
You need to install Docker Machine first on your local machine. If you use Ubuntu, just use this snippet (Update the version from the Official Repository Releases if needed) : $ curl -L https://github.com/docker/machine/releases/download/v0.16.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && chmod +x /tmp/docker-machine && sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
Docker Network not Found
If you are attempting to add a container to an existing network that no longer exists, then you can use docker-compose up –force-recreate. I found this GitHub issues comment to be a helpful overview.
How to configure autoscaling on docker swarm?
Short answer: There is no easy way to do this with Docker Swarm for now. Docker Swarm (or Swarm mode) does not support auto-scaling machines out of the box. You’d need to use another solution for that like docker-machine to create machines (with docker) on your infrastructure and link these to the existing Swarm cluster … Read more
Convert a docker run command into a docker-compose
Converting a docker run command into a compose file Composerize will help you convert run command to a compose partially. To understand it better I have described the components of the docker-compose.yml here. image – image used to run the container name – name of the service or container command – command you want to … Read more
Run docker service on HTTPS
Thanks Jerome for the answer. I did the following things to get https working on my container. I hope this might be helpful to someone. This image has IIS on it. Add Self signed certificate to image from this script: certificate.ps1 Create Self Signed Certificate. Install it on local certificate store. Create HTTPs Binding and … Read more
How to disable docker swarm mode?
docker swarm leave is used when you want a worker node to leave from swarm , while docker swarm leave –force is for a manager node to leave the swarm.
How to directly mount NFS share/volume in container using docker compose v3
After discovering that this is massively undocumented,here’s the correct way to mount a NFS volume using stack and docker compose. The most important thing is that you need to be using version: “3.2” or higher. You will have strange and un-obvious errors if you don’t. The second issue is that volumes are not automatically updated … Read more
What is the difference between docker service and stack?
The docker service is used when managing individual service on a docker swarm cluster. It is the client command line to access the docker swarm manager. The docker stack can be used to manage a multi-service application. It also moves many of the options you would enter on the docker service into the .yml file … Read more
REST vs gRPC: when should I choose one over the other?
When done correctly, REST improves long-term evolvability and scalability at the cost of performance and added complexity. REST is ideal for services that must be developed and maintained independently, like the Web itself. Client and server can be loosely coupled and change without breaking each other. RPC services can be simpler and perform better, at … Read more