How to generate a Dockerfile from an image?

Is it possible to generate a Dockerfile from an image? I want to know for two reasons: I can download images from the repository but would like to see the recipe that generated them. I like the...

How to install docker-compose on Windows

If I type the following commands in boot2docker as shown on the docker website: curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` >...

How can I keep a container running on Kubernetes?

I'm now trying to run a simple container with shell (/bin/bash) on a Kubernetes cluster. I thought that there was a way to keep a container running on a Docker container by using pseudo-tty and...

Connect to mysql in a docker container from the host

(It's probably a dumb question due to my limited knowledge with Docker or mysql administration, but since I spent a whole evening on this issue, I dare to ask it.) In a nutshell I want to run...

How to tag docker image with docker-compose

I want to build image via docker-compose and set specific tag to it. Documentation says: Compose will build and tag it with a generated name, and use that image thereafter. But I can't find a...

Docker exec Requires minimum of 2 arguments

I am using a shell script on Linux in order to execute some Docker commands : docker exec -t -i test1 passwd ... docker exec -t -i test2 passwd And on the second exec command I receive the...

Is there a best practice on setting up glibc on docker alpine linux base image?

Is there a best practice on setting up glibc on docker alpine linux base image with correct paths so any spawned process can correctly reference the location of the installed libc libraries?

Docker Compose how to extend service with build to use an image instead

Having a base docker-compose.yml like the following: version: '2' services: web: build: . ... How can I extend it to use an image instead? docker-compose.prod.yml version: '2' services: ...

How to switch to root in Jenkins docker container?

I have setup Jenkins server inside a docker container. The image I am using is docker pull jenkins. After that I connect to the container by docker exec -it b74d035352ec bash. The default user is...

docker compose override a ports property instead of merging it

My docker compose configs look like this: docker-compose.yml version: '3.5' services: nginx: ports: - 8080:8080 docker-compose.prod.yml version: '3.5' services: ...

How to create & run .net Core Console App in docker

I have a .NET Core 2.1 console app. I want to run this console app in a Docker image. I'm new to Docker and just trying to figure it out. At this time, I have a Dockerfile, which was inspired from...

An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused

I have a problem with docker and symfony to access mysql. To try to query mysql by connecting to the php container: docker exec -it symfony_php bash Then I execute the following...

Can I use pg_dumpall withtout installing postgresQL?

I tried in my docker container(from alpine3.6) to run command to install pg_dumpall I've seen in the web: apk update && apk upgrade and then apk add --no-cache postgresql-client-common and...

Error while creating High Availability Kubernetes cluster with Kubeadm

I am creating Kubernetes Cluster inside VM (image that I used inside VM is CentOS 7 CIS Hardened) with kubeadm. I am following official documentation of creating High Availability Cluster with...

502 Bad Gateway nginx/1.14.1 elasticbeanstalk .net core app running on docker

I have .net core app running in docker, when I deploying image to amazon Elastic Beanstalk, status is ok, however when I am trying access the page i am getting "502 Bad Gateway...

My application container is not able to my mysql container

After all of web searching and coming up of no answer to this, I thought of asking this question on this platform. I had an application container which i try to connect with mine database...

Can not connect MongoDB docker-compose

Can not connect mongodb run in docker-compose MONGO_URL=mongodb://db:27017/500ae_cms error: MongoDB connection error: mongodb://db:27017/500ae_cms. MongoNetworkError: failed to connect to server...

How to install kafkacat on kafka container resulted from docker-compose

My context is I am trying to create a docker-compose wich will start few containers for running ELK+FileBeats and 3 Kafka containers. The whole docker compose and its yml configuration files can...

Error: A language with id 'R' is not installed. Installed languages are: []

I'm deploying a JavaEE app in a Wildfly running in a Docker container. This app uses the GraalVM to run a R script. The environment is set to use the GraalVM with Java 11, but when I execute the...

Docker remote error: tls: handshake failure

I installed Docker version "Docker version 19.03.8, build afacb8b" and when I try to use the docker pull command, like "docker pull mcr.microsoft.com/mssql/server:2017-latest" by administration...

Unable to install yarn packages via docker build

I'm trying to speed up spinning up docker by having all current packages in yarn.lock be installed on the image already. I think I'm doing yarn install incorrectly, that it is working somewhere...

Docker Alpine Linux python (missing)

I have a pipeline which deploys my container from GitLab. Last deployment was 5 days ago and went without any problems. Today I deploy it and get the following error: $ apk add --no-cache curl...

Mysql2::Error: Out of sort memory, consider increasing server sort buffer size using docker-compose.yml

Hi I'm building a rails app and I imported lots of data and inserted into the database. Some tables are okay and some tables have some errors that says out of sort memory. SQL ERROR Mysql2::Error:...

Dockerfile - Build docker image for multiple Node.js app

How do I run all my Node.js file in a single container? app1.js running on port 1001 app2.js running on port 1002 app3.js running on port 1003 app4.js running on port 1004 Dockerfile FROM...

Deno and Docker how to listen for the SIGTERM signal and close the server

I'm trying to find a way to listen in Deno for the Docker SIGTERM signal to close my Oak server. I got this code from Oak website and it works fine when I call the controller.abort() function,...

Docker-compose up : Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

I am trying to do the docker-compose up command in my terminal. First I navigate to the file directory where I find a docker-compose.yaml. Then I write the command. The Server is on Port 80. I get...

monitor host machine using metricbeat system module from inside a docker container

I'm using the docker-compose to configure the system module of Metricbeat I have created the metricbeat.yml and system.yml and mount in my docker compose...

'docker" command cannot be found in this WSL1 distro

While attempting to install, in VS Code, the Fabric samples and binaries through the curl command : I've encountered the following error, as soon as Fabric docker images are pulled : The command...

"key cannot contain a space" error while running docker compose

I am trying to deploy my django app to app engine using dockerfile and for that after following a few blogs such as these, I created a docker-compose.yml file but when I run the "docker compose...

Can't install python package on Alpine docker anymore

I have a problem that started very recently, Docker Alpine python library is not installable anymore: apk update && apk upgrade && apk add python fetch...