Questions tagged [docker-container]

Docker Containers are the core of the docker platform in which programs and applications can be packaged and run in simulated environments.

Docker containers are the core of the docker program in which programs and applications can run in simulated environments.

These containers serve as a way to simulate code that would otherwise cause irreversible changes to a systems hardware. The difference between this and a virtual machine is that the docker container does not run code on the same level as the virtual machine on top of the fact that it is a lot more portable.

Docker containers can be loaded with any type of environment, even your currently used machine, or serve as simple tool boxes for your file sytems.

For more info, see the official documentation of a docker container.

1187 questions
0
votes
1 answer

How do I start a php server in the background as a daemon in a docker container

I was trying to follow the tutorial here using upStart (Run php script as daemon process), but I ran into some snags when I get the error 'startserver: unrecognized service' Here is some images to show what I tried At the bottom of the console is…
Joseph Astrahan
  • 8,659
  • 12
  • 83
  • 154
0
votes
1 answer

Docker Host And Other Fundamental Questions

I am new to Docker. And have few easy questions hope you could help. I have a windows 10 machine which installed "docker for windows". In its HyperV manager I could see a virtual machine called "MobyLinuxVM". So my questions are: 1, When people…
Samuel
  • 631
  • 1
  • 10
  • 26
0
votes
1 answer

How to get ip and port in one docker container form other one with environment variables?

I use Docker-Compose. Some time ago i used this code. Nginx used ip and port from environment variables like this "API_PORT_5432_TCP_ADDR" "API_PORT_5432_TCP_PORT". Now i can not to connect from one container to other. I found some description in…
EgorkZe
  • 391
  • 1
  • 4
  • 15
0
votes
1 answer

In the second run of chef-client, lazy attribute of docker_container on "link" is not getting resolved and passed unreadable value

my first time to ask stuff on stack-overflow, here in china i seldom able to meet any chef developer to talk about my problem so i am posting it here to seek for help. This issue has been bothering me for weeks and i am still trying to settle…
0
votes
0 answers

Docker - Windows containers: How to use custom paths

I have been trying to figure out where docker is trying to store images when I am doing a docker pull for windows containers but am unable to find the exact location. Even though I have created Junction links for all the docker files I could find…
0
votes
1 answer

dockerd --add-runtime vs. docker-container --runtime

What is the difference between setting --add-runtime to dockerd and --runtime to docker-container? Should I define --runtime for manually run docker-container when using also dockerd or will dockerd take care of picking right runtime?
MiB
  • 123
  • 1
  • 1
  • 6
0
votes
1 answer

Run Go app created in windows in Docker container (Ubuntu)

I created very simple application that put to output some text. My development environment is Windows + Docker for Windows. I created ubuntu container and after build my application in Windows for ubuntu set GOARCH=amd64 set GOOS=linux go build -o…
Vitalii
  • 10,091
  • 18
  • 83
  • 151
0
votes
2 answers

Docker Container npm global affect host or only container?

When I perform a npm install -g in a Docker container, will it only affect the container or will it actually install the package on the host of the container? Regards.
TanguyB
  • 1,954
  • 3
  • 21
  • 40
0
votes
1 answer

How to properly edit host directory from a docker container

Here I'm not asking about how to mount a directory from the host machine to a docker container, but instead how can I edit a mounted directory from a container. I'll give more details about my use case Now I'm working on a Gitlab fork, and using GDK…
Muhammad Hamada
  • 725
  • 5
  • 13
0
votes
1 answer

What patterns are people using for hosting Web Forms application in Windows Containers?

What is the best practice for hosting legacy ASP.NET web form applications in Windows Containers? One image per web app? Compiled web apps mounted into a container of the ASPNET image at docker run?
Chris Clements
  • 168
  • 1
  • 10
0
votes
0 answers

Connect to Docker Machine remotely in Docker Toolbox

Every time i run a docker command remotely (e.g docker-machine ssh default) I always get an error saying that default is not running although I started the docker machine manually on the Windows machine. When I run "docker-machine ls" the state is…
0
votes
1 answer

How to start multiple containers that use tcp with Docker

I'm trying to run a second Meteor app in a Docker's container. The first (who is running as I want) is accessible with localhost:3000and I want to run a second one in a other port like localhost:3003. When I try to access the second I got this…
Jerome
  • 1,162
  • 2
  • 16
  • 32
0
votes
1 answer

docker-compose failed after deleting docker image

ERROR: build path /Users/client/lib/funnel_chart either does not exist, is not accessible, or is not a valid URL. I got this error when I force deleted a directory when there is a merge conflict. And when I try to do the docker-compose down or even…
witchy
  • 26
  • 2
  • 8
0
votes
2 answers

Docker container crashes on start: java.net.NoRouteToHostException: No route to host

In recent days, my Docker container (SonarQube) crashes a couple seconds after being started. It seems that it cannot connect the database container anymore. How can I reconnect them together? MySQL container run command: docker run -d --name…
RotS
  • 2,142
  • 2
  • 24
  • 30
0
votes
1 answer

Connecting a Docker container running PHP to the host's(ubuntu on VirtualBox) MSQL server

Running VirtualBox with Ubuntu 16.04 on which I have a Docker container that has Apache2 and PHP installed. MYSQL is installed on the host(ubuntu on VirtualBox). I am trying to access the MYSQL server on host from the docker container
succeed
  • 834
  • 1
  • 11
  • 28