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
11
votes
1 answer

Automatically append docker container to upstream config of nginx load balancer

I'm running Docker Compose (v2) and have a node service (website) and python based api deployed with nginx sitting in front of them. One thing I would like to do is be able to scale the services by adding more containers. If I know ahead of time…
ExoticChimp
  • 1,884
  • 1
  • 19
  • 37
10
votes
0 answers

Docker Windows container can't resolve host.docker.internal

My windows docker container cannot resolve host.docker.internal, but it's working with Linux containers. I would prefer to stay with Linux containers, but I am having trouble with an old .Net framework 4.7.2 application. My application connects to…
10
votes
1 answer

Can we have a docker container without a shell?

Can we build a docker container that doesn't have any shell in that container ? Is it possible to create a container without a shell ?
10
votes
1 answer

How to access Azure App Service application log to check Docker Compose errors?

I am a newbie at Azure and this is my first question at StackOverflow. I have a problem on deploying new Azure App Service with Multi-Container Docker (Linux) using Docker Compose. Unfortunately, I can't access my application log because there are…
10
votes
3 answers

How to Copy and Extract a .tar file inside a Docker Container

I'm having a scenario wherein I need to copy a .tar file into docker container and extract the content to a specific folder inside the container. So do we have any specific commands to handle this Scenario?
Rajesh
  • 4,273
  • 1
  • 32
  • 33
10
votes
4 answers

open a file in docker container with vscode

I need to edit a file in a docker container. as no advanced ide inside the container,I wonder if vscode or some other ide can access into the container and let me edit files as outside the container.
curtank
  • 600
  • 2
  • 7
  • 18
10
votes
3 answers

Measure execution time of docker container

I have a docker image called my_image which launch a command and closes. When running the image in a container using command docker run --rm my_image, is it possible to measure the execution time of the container ? Edit : I need to see those timing…
Matthias Beaupère
  • 1,731
  • 2
  • 17
  • 44
10
votes
2 answers

Where are the WordPress files with Docker?

I'm getting started with running Docker on MacOS and I just was able to install a WordPress container and get that running locally. But where the heck are the actual WordPress files? Do I need to SSH into the container so I can view/edit them there?…
ultraloveninja
  • 1,969
  • 5
  • 27
  • 56
10
votes
6 answers

Does a RHEL7 docker container need subscription?

I have a rhel7 host with docker in it. I have build a image with also rhel7 as base image. But when I run the container & do yum update or try to install in package with yum, it gives me below error. "This system is not registered to Red Hat…
Furious
  • 473
  • 2
  • 5
  • 21
10
votes
1 answer

docker connecting to host tunnel from container

I would like to connect from inside my docker container with a postgres db that is using a tunnel in the host. In the host I have a tunnel pointing to the DB host: host$ sudo netstat -tulpen | grep 555 tcp 0 0 127.0.0.1:5555 …
dawez
  • 2,714
  • 2
  • 29
  • 50
10
votes
4 answers

How to deal with state "Exit 0" in Docker

I have build a Docker image and afterwards run a container using Docker Compose. The following command will do the job for me: docker-compose up -d I have restarted the PC and now I want to start the previous container that I've created before. So…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
9
votes
1 answer

how to remote access to mariadb on docker?

I've created a docker container containing an instance of mariadb, but i cannot access to the database from my phisical machine: I've got the ip address from docker inspect and the port from docker ps but Sequel Pro gave me the connection failed…
Lollo
  • 535
  • 2
  • 5
  • 18
9
votes
2 answers

Microservices in Docker implementation

We are writing our first micro services using Docker containers using Amazon fargate. We have many doubts on the implementation level using Spring Boot We will have multiple micro services in the project, is it a good practice we are writing all the…
anoop
  • 1,604
  • 6
  • 24
  • 50
9
votes
3 answers

Passing Environment Variables to Docker Container When Running in Visual Studio

We have a .NET Core project in Visual Studio (2017) that has Docker support added. Our project relies on environment variables to configure itself at start up. As we understand it, in order to pass environment variable values to a container you…
9
votes
1 answer

can't stop docker couchbase-community

I started couchbase community with docker as following: docker run -e CB_RAMSIZE=256 -e "CB_ADMIN_PWD=123456" --name couchbase-community -p 8091-8094:8091-8094 -p 11210:11210 crobin/couchbase-community I'm now trying to stop it with docker stop…
Jas
  • 14,493
  • 27
  • 97
  • 148