I have an API written in Go that has been Dockerised and runs in a Kubernetes cluster on GKE. At the moment my API server does not handle any shutdown scenarios such as a Pod dying or being purposefully brought down. What set of UNIX signals should I expect to trap to gracefully shutdown the server and what c…
Tag: docker
Not able to get output file with data while creating a docker image from a Python script using Docker for windows
I am using Docker for windows with Linux containers, I have created a simple python script where I need to take input from 2 text files and append them and export them into a text file. Below is the code for the test_script.py Now I am trying to create a docker container with this, I want to just pass the
How to fix “curl (56) Recv failure: Connection reset by peer” error when doing a port mapping from docker container to host machine?
I have a Angular Project running in a docker container at port 4200. I have done a port mapping from docker container’s 4200 port to my localhost 4200. I am running this on Ubuntu 16.04. When doing netstat -nltp, I get output tcp6 0 0 :::4200 :::* LISTEN My Dockerfile looks like : I expected when runnin…
Docker: attach to a specific bash
Lets say I have a container running and I do Then I detach from this container and want to attach again If I do this I wont go back to that bash that I created. Instead I will go to the main process. How can I attach to that bash again ? Answer You can’t. While the docker exec documentation
Docker difference docker run[…] docker container run […]
Is it difference between this commands? In addition then why in second command uses -i(Interactive) and -t(TTY)? Answer docker container run is equivalent to docker run, as well as nearly all docker container commands can be found without container subset. About -it. t creates console (tty), and i forwards yo…
How to get source code from git repo using DockerFile
I have Git and Docker on a remote Linux machine. The source code of my project is in a bare repo. I need a way of making the source code from this repo available to Docker during the build process. Below is what I have now (which is basically the default template in VS 2017 for a Docker ASP.NET Core
Team City “minimal build agent” Docker image – “npm: not found” Linux issue?
First of all, I think this is more of a Linux issue as the problem seems to be on a linux-flavoured Docker container, but I’m happy to accept that I can do something to the team city config to overcome this. I’m also not very experienced with Linux, Docker or node/npm, though I do have a lot of de…
Docker-Compose: Service xxx depends on service xxx which is undefined
I’m having this error: ERROR: Service ‘db’ depends on service ‘apache’ which is undefined. Why is it saying that apache is undefined? I check the indentation. Should be the right one. Answer No, it’s not defined. You have overwritten one services with the other one. You sho…
Docker install on Linux Mint 19 Tara [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Closed 4 years ago. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-top…
Add Carbone to Docker image
I have installed Carbone on my local Linux machine using the following command and it is working properly. Now, I need to add carbone in my docker image, but I don’t know how to add it to the image. Should I add the npm install command to DockerFile or add it to package.json? I got the following error i…