Skip to content
Advertisement

Tag: docker

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 running curl :::4200, to

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 your input to docker. That means you can use -t when

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

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-topic on another Stack Exchange site, you can leave a comment to

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 if I

Advertisement