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
2 answers

How to keep a certain number of Docker containers running the same application and add/remove them as needed?

I've working with Docker containers. What Ive done is lunching 5 containers running the same application, I use HAProxy to redirect requests to them, I added a volume to preserve data and set restart policy as Always. It works. (So far this is my…
Raphael
  • 1
  • 1
0
votes
2 answers

Can not exit from node app, when using docker

CRT + C is not stopping the node app, when I run the app using docker. Following are the steps I have done. I would be very thankful for your help. My node app. var config = require('./config.json'); var mongodb = require('mongodb'); var request =…
Eranga Kapukotuwa
  • 4,542
  • 5
  • 25
  • 30
0
votes
1 answer

at command inside docker container

I am trying to run the at command inside a docker. This command is present in the script, the entrypoint script, which runs when the container is started using the docker run command. Most of the times the at command runs successfully but for like 1…
tom
  • 172
  • 1
  • 10
0
votes
3 answers

How to connect Wordpress and MySql running on independant containers

Wordpress is running inside a Docker container on hostA and MySQL is running inside a Docker container on hostB. Is it possible to link these two containers to communicate to each other? Is this even possible to do something like this? Any help on…
0
votes
1 answer

Link Running External Docker to docker-compose services

I assume that there is a way to link via one or a combination of the following: links, external_links and networking. Any ideas? I have come up empty handed so far. Here is an example snippet of a Docker-compose which is started from within a…
0
votes
1 answer

Connect to MySQL in a docker container (Vagrant on Windows/VirtualBox)

I am trying to create a virtualised dev environment on Windows using Vagrant and Docker (as are a lot of people). The problem I have is that I cannot connect (or I dont understand how to) from MySQL Workbench running on my Windows laptop to my MySQL…
0
votes
2 answers

How to run docker images (nodejs server) without exiting

Created docker image which will run perl script which internally triggers node servers using pm2 command. Image created using dockerfile FROM rm/node:4.0 EXPOSE 3000 EXPOSE 3030 EXPOSE 7030 WORKDIR /Reader_Manager/SISPlatform CMD perl…
divakar.scm
  • 1,256
  • 5
  • 21
  • 32
0
votes
3 answers

How could one use Docker Compose to synchronize container execution?

How could one use Docker Compose to synchronize container execution? The problem I'm trying to solve is similar to Docker Compose wait for container X before starting Y. I use Docker Compose to launch several containers, all running on the same…
Derek Mahar
  • 27,608
  • 43
  • 124
  • 174
0
votes
1 answer

Docker:How to get exact time the Docker host receives the request & exact time the Docker container receives the request in docker?

I have a Django application running inside docker container. But because of some reason my application became very slow. I want to use profiling to my application. For that I check with Apache & nginx logs.Then want to get more picture on this.How…
danny
  • 983
  • 1
  • 7
  • 13
0
votes
1 answer

RabbitMQ inside docker won't end gracefully and cannot reconnect

I am trying to do RPC with RabbitMQ inside 2 docker containers. I have set them up as follows: chindow: image: bablot/chindow ports: - "9999:9999" links: - rabbitmq:amq rabbitmq: image: rabbitmq:3 ports: - "15672:15672" Everything…
Dylan Harness
  • 719
  • 1
  • 9
  • 20
0
votes
0 answers

Link containers env

Im trying to link two containers to one app, and want to reference those apps hostname/url in an env. Then the main application can run, but i cannot manage to get the values properly. Dockerfile of main app contains this ENV APP1_URL app1 ENV…
abFx
  • 313
  • 3
  • 14
0
votes
1 answer

How does docker manage container new files?

When running two containers from the same image, Container A,and B Suppose that in Container A, we have installed package AA, and in container B,we have installed package BB, without using any drive. The questions is, are containers completely…
simo
  • 23,342
  • 38
  • 121
  • 218
-1
votes
1 answer

How to access d:/files directory/folder from docker container

I have node/express application running in docker using below docker-compose file, docker-compose version: '3.8' services: serverapp: build: context: ../ dockerfile: Dockerfile image: backend:5.1.5 container_name:…
micronyks
  • 54,797
  • 15
  • 112
  • 146
-1
votes
2 answers

kubernetes k8 unable to pull latest image

Hi I am working in Kubernetes. Below is my k8 for deployment. apiVersion: apps/v1 kind: Deployment metadata: #Dictionary name: webapp spec: # Dictionary replicas: 1 strategy: type: RollingUpdate rollingUpdate: # maxUnavailable…
-1
votes
1 answer

Flask app is running in localhost but not running in Docker Containe

I have made a basic temperature converter web app using python Flask and when i am running in using the command `python3 main.py Then it is runnning fine. But after building dockerfile and running in container it is not running dockerfile is build…
Goku
  • 59
  • 1
  • 8