i need to add healthcheck on my own docker stack, i’m using some extension fields in order to optimize my docker stack and reuse those field variables. Now, for testing health of my services, i need to do a specific API call passing the token api as parameter, the token is defined as extension field. ..
For example for docker compose the name of the yaml file should be only docker-compose.yml. But in case of docker stack $ docker stack deploy -c stackfile.yml the name of the yaml can be anything. Source: Docker..
We are running Docker in swarm mode. Is it possible to save an existing Docker stack to reapply it in case the whole cluster would be destroyed? If Docker would save the docker-compose file anywhere, we could backup this file but I dind’t find any indication in the Docker docu that this would be the ..
I’m trying to understand how the docker compose health check options work. healthcheck: interval: 1m30s timeout: 10s retries: 3 Would I be right in saying that this configuration will poll a container every 90 seconds, then if the container times out after 10 seconds, then the swarm will try again 3 times, after which it ..
Docker is running, ContainerExecCreate creates a container, but ContainerExecAttach returns: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock in response. Is the docker daemon running? What could be the problem. import ( "archive/tar" "bytes" "context" "fmt" "io" "io/ioutil" "log" "net" "os" "strconv" "strings" "time" client "docker.io/go-docker" "docker.io/go-docker/api/types" "docker.io/go-docker/api/types/container" "docker.io/go-docker/api/types/network" "docker.io/go-docker/api/types/swarm" "docker.io/go-docker/api/types/volume" "github.com/containerd/containerd/reference" "github.com/play-with-docker/play-with-docker/config" ) ..
I’m following a tutorial on docker stack, swarm, compose, etc. the teacher connects to a VM of the swarm and then deploys a docker stack from this directory [email protected]:~/srv/swarm-stack-1: docker stack deploy -c example-voting-app-stack.yml voteapp However, I can’t get there because I don’t know how to copy the yaml compose file from the course repository ..
I have 5 services, which all get assigned a random color on docker-compose up at the moment. the problem is, one color is the exact same color as the background of powershell, which I use to up the services. Can I assign a color to each service in my docker-compose? Source: Docker..
I am currently setting up remote workers via docker swarm for Apache Airflow on AWS EC2 instances. A remote worker shuts down every 60 seconds without an apparent reason with the following error: BACKEND=postgresql+psycopg2 DB_HOST=postgres DB_PORT=5432 BACKEND=postgresql+psycopg2 DB_HOST=postgres DB_PORT=5432 /home/airflow/.local/lib/python3.7/site-packages/airflow/configuration.py:813: DeprecationWarning: Specifying both AIRFLOW_HOME environment variable and airflow_home in the config file is deprecated. Please ..
I want to set resources (CPU, MEM) limit in a way so that my pipeline can use values from azure variable group and if i run this stack file in local machine it should read the default values. version: ‘3’ services: redis: image: redis:alpine deploy: resources: limits: cpus: ‘0.001’ memory: 50M reservations: cpus: ‘0.0001’ memory: ..
I have a docker-compose file with two services from images that I will be updating. I’m using Jenkins to manage CI/CD and after testing a project and publishing the updated image, I trigger another job to deploy, with a parameter indicating the new tag. That way, i can set this as an environment variable and ..