Category : docker-stack

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" ) ..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more