Questions tagged [docker-in-docker]

24735 questions
1

votes
1

answer
1.1k

Views

Does NodeJS respect Docker virtualization and resource limits?

It is known that some applications aren't aware of Linux kernel isolation and virtualization features such as cgroups. This includes system utils like top, free and ps, but also platforms like Java. I've recently read an article which suggests that when running JVMs in Kubernetes, you should enforce...
Kir
1

votes
0

answer
97

Views

Docker-compose: bind Celery to Postgres database

My Docker app runs with Flaskas backend and Celeryas an asyncronous task manager. Task results are then dumped in a SQLalchemy database owned by Postgres. However, I am not being able to make Celery interact with Postgres. STRUCTURE docker-compose-dev.yml web/ entrypoint.sh celery_worker.py migrati...
data_garden
1

votes
1

answer
565

Views

What is the signal sent to the process running in the container when k8s liveness probe fails? KILL or TERM

I have a use case to gracefully terminate the container where i have a script to kill the process gracefully from within the container by using the command 'kill PID'.( Which will send the TERM signal ) But I have liveness probe configured as well. Currently liveness probe is configured to probe at...
Beatrix Kiddo
1

votes
2

answer
1.5k

Views

Trouble in installing Openjdk-8 in Debian Jessie

I am trying to install jdk-8 in debian jessie docker containier. Below is the docker file FROM debian:jessie ENV DEBIAN_FRONTEND noninteractive RUN \ echo deb http://http.debian.net/debian jessie-backports main >> /etc/apt/sources.list &&\ apt-get update && apt-get install openjdk-8-jdk &&\ update-a...
Anil Bhaskaran
1

votes
1

answer
2.6k

Views

What are docker-proxy processes for

When I look at all running processes on my Linux machine, there is are quite a few docker-proxy processes. It seems like every running container (port) results in one docker-proxy!? Problem is I cannot find any documentation which processes docker actually starts and how their relationship/usage is....
abergmeier
1

votes
2

answer
959

Views

Installing pyarrow in alpine docker

I am trying to install pyarrow using pip in my alpine docker image,but pip is unable to find the package. I'm using the following Dockerfile: FROM python:3.6-alpine3.7 RUN apk add --no-cache musl-dev linux-headers g++ RUN pip install pyarrow output: Sending build context to Docker daemon 4.096kB S...
thotam
1

votes
1

answer
811

Views

Can't connect to mongo docker image with mongoose

I'm trying to run a simple docker setup with node and mongo: Dockerfile: FROM node:8.9.4-alpine RUN mkdir /app WORKDIR /app COPY package.json /app/ COPY package-lock.json /app/ RUN npm install ADD . /app/ docker-compose.yml: version: '3' services: db: image: 'mongo' ports: - '27017:27017' api: build...
Philip Feldmann
1

votes
2

answer
1.1k

Views

docker-compose restart connection pool full

My team and I are converting some of our infrastructure to docker using docker-compose. Everything appears to be working great the only issue I have is doing a restart it gives me a connection pool is full error. I am trying to figure out what is causing this. If I remove 2 containers or (1 complete...
Ryan Condron
1

votes
1

answer
412

Views

Host Dockerized Django project on AWS

I have a Django project which is working fine on my local machine. I want to host the same on AWS, but confused on what service to use and what is the best practice to so. Do I use EC2, create a ubuntu instance on it and install Docker or use ECS ? What is the best practice to transfer my django pro...
ricky
1

votes
1

answer
665

Views

Docker: How to use multistage images after build finishes

Scenario Multistage builds combine multiple Dockerfile sections into a single one Intermediary and final stages can copy files from the upper stages Final stage is suggested to have only the binaries needed. With those in mind, I'd like to build the follow FROM fat-base as build RUN setup unit test...
Marcello de Sales
1

votes
1

answer
1.8k

Views

Passing environment variables not working with Docker

I am learning how to pass environment variables to Docker containers. While the following works fine, Dockerfile FROM ubuntu ENV USERNAME='david' CMD echo 'username = $USERNAME' Build & run commands docker build . -t enviro docker run -d enviro docker ps -a gives 2a3a69aa7868 enviro...
AlexScalar
1

votes
3

answer
53

Views

docker swarm container comunication

i create a swarm and join a node, very nice all works fine docker swarm init --advertise-addr 192.168.99.1 docker swarm join --token verylonggeneratedtoken 192.168.99.1:2377 i create 3 services on the swarm manager docker service create --replicas 1 --name nginx nginx --publish published=80,target=8...
1

votes
2

answer
1.5k

Views

Deploy docker image (not Dockerfile) to Heroku?

I want to deploy an existing Docker image to Heroku, where there is no Dockerfile in the local directory. (I created the Docker foo:bar image using datasette, and I don't know where it puts the Docker image). These are the Docker images I have available: $ docker images REPOSITORY...
Richard
1

votes
1

answer
26

Views

How to communicate between two containers using docker

I'm facing an issue to access one container route in another container. For example i have two micro services called user-service and api-gateway. I'm trying to access user-service route in api-gateway. My api-gateway file could be like below const userServiceProxy = httpProxy(http://localhost:8093...
Sasi Rekha
2

votes
1

answer
18

Views

Weird behavior of calling docker run from bash script

I try to run docker run from bash script and docker says: “is not a docker command” If I print the docker command line before I called docker and I copy it to clipboard and paste it to command line it works well! here is the command in bash script: local args='run ${nw_param} ${opts} --name ${im...
zamek z
1

votes
1

answer
2.5k

Views

Create a dockerfile that runs a python http server to display an html file

I have a directory with one simple HTML file (name: index.html) which displays some basic text. I run the python command: python -m SimpleHTTPServer 7000 to run a server, at port 7000, in the same directory to display the page in a browser. Now I want to be able to dockerize this process and need...
El Tikki
1

votes
2

answer
368

Views

Docker Kong admin API is unreachable

I've upgraded the Docker Kong image to the version 0.14.0 and it stopped responding to connections from outside the container: $ curl 127.0.0.1:8001 --trace-ascii dump.txt == Info: Rebuilt URL to: 127.0.0.1:8001/ == Info: Trying 127.0.0.1... == Info: Connected to 127.0.0.1 (127.0.0.1) port 8001 (#...
Sergey
1

votes
1

answer
963

Views

Blob Unknown when pushing to custom registry through apache proxy

I have a custom docker registry running in a container bound to localhost like this 127.0.0.1:5010->5000/tcp. When I push an image to it locally it works. When I try to push an image to it remotely it connects and starts to push the image and then I get err.code='blob unknown'. The registry is pr...
Jrow
1

votes
3

answer
231

Views

docker build is failing when snowflake dependency is included in the pip requirements

I am trying to build docker image out of my python application. But when I am adding 'snowflake-connector-python' to the pip requirements.txt file the docker build is failing. requirements.txt:- boto3 pycryptodome snowflake-connector-python Dockerfile:- FROM python:alpine3.6 RUN python --version CO...
dks551
1

votes
1

answer
747

Views

What is the actual use of labels in docker-compose

I was reading docker-compose tutorials and want to understand more about labels I read that they can be used to store metadata. Is labels useful just to store metadata or Are there any other significant uses? Please help me to understand this more.
a8989
1

votes
2

answer
1.1k

Views

Container getting connection refused

I am having an issue with my docker containers, where one of them is a REST API server and the other is just a test container to curl the former one. I have created a custom docker network with a specific IP address range and both containers are connected to it. In the Dockerfile(REST API Server im...
Dan
1

votes
1

answer
237

Views

Docker-toolbox cannot access VM by IP

I run: docker run -p '9999:80' nginx and attempt to access the web server using the following address: 172.17.0.2:9999. I got this IP from docker inspect [container_id]: 'NetworkSettings': { 'Bridge': '', 'SandboxID': '877eb750a0f35037f0b9dff2b6bd95f7dd4aaf80ae0ed8cf65e20ad8aeb85132', 'HairpinMode':...
BugHunterUK
1

votes
1

answer
63

Views

Package.json file not found when using kubernetes

I trying to setup kubernetes on my local environment using docker. I've built the necessary docker image with this Dockerfile: FROM node:9.11.1 WORKDIR /usr/src/app COPY package.json /usr/src/app/ RUN npm install COPY . /usr/src/app/ EXPOSE 3002 CMD [ 'npm', 'start' ] I then pushed this image to my...
Christofer Johnson
1

votes
1

answer
514

Views

Kubernetes - Create two containers in one pod

I'm developing an application that consists of two containers. I want to deploy them in Kubernetes into one Pod, since I want the two services to be behind one IP address. However, I'm having a hard time trying to connect the kubernetes Services with the containers. How could I write a deployment.ym...
UrmLmn
1

votes
2

answer
543

Views

Connect to docker-compose network using docker run

Let say I have running orchestration with docker-compose with docker-compose.yml looking like this: version: '2.2' services: service1: # ... networks: - compose_network service2: # ... networks: - compose_network networks: compose_network: I aim to run and connect temporarily one container to compos...
Nixwill
1

votes
1

answer
219

Views

How to copy a csproj file using docker without visual studio and without docker compose?

I just started a new solution with a .NET Core Project (2.1) using visual studio 15.8.8. It can run and debug it by setting the docker compose file as a startup project. It works! Logically, I should be able to build the docker image with a simple commandline statement. However, it complains that th...
Daan
1

votes
2

answer
394

Views

Netstat not showing ports exposed by docker

For some reason netstat is not listing ports exposed by docker. As suggested here I usedEXPOSE for both ports 8080 and 5050. But none of them is visible from host. Dockerfile ... FROM openjdk:11-jre-slim COPY --from=build /usr/src/app/api/target/track-metadata-api-*.jar /app/track-metadata-api.jar...
Matjaž Mav
1

votes
2

answer
510

Views

Running “mvn clean install” maven command using ansible module

I am trying to implement the CI/CD pipeline for my project. I am using Ansible , Docker and jenkins. SVN checkout , Image docker image building , image pushing to Dockerhub , Pulling and deploying etc every stages are planning to do using ansible roles.Now I successfully implemented sample svnchecko...
Jacob
1

votes
2

answer
1.4k

Views

Docker compose script complaining about a python module import

Docker script docker-compose --version is now throwing a weird error and is complaining about a missing python module ordered_dict. Not sure why is this happening but previously it was working just fine. Not sure if its related but I installed pip for python and later installed awscli using the pip....
htopiwala
1

votes
1

answer
4.4k

Views

Getting apt-get on an alpine container

I have to install a few dependencies on my docker container, I want to use python:3.6-alpine version to have it as light as possible, but apk package manager which comes with alpine is giving me trouble so I would like to get the apt-get package manager. I tried: apk add apt-get and it didnt work....
NotSoShabby
1

votes
3

answer
871

Views

How to access the service deployed on one pod via another pod in Kubernetes?

Can anybody let me know how can we access the service deployed on one pod via another pod in a kubernetes cluster? Example: There is a nginx service which is deployed on Node1 (having pod name as nginx-12345) and another service which is deployed on Node2 (having pod name as service-23456). Now if '...
Aditya Datta
1

votes
1

answer
272

Views

Docker Multi-Stage: How to split up into multiple Dockerfiles

I am successfully using Docker's Multi-Stage feature to build some code and then copy the resulting artifacts into a final image. Is it possible to split this one big-ish Dockerfile into multiple files? I would like to improve the readability of the individual stages. Which will become more importan...
Unapiedra
1

votes
2

answer
156

Views

Insufficient cpu in Kubernetes multi node cluster

I am trying to deploy an application into my Kubernetes cluster. It is a multi node cluster. There are 3 m4.2xlrge aws instances. m4.2xlarge vCPU :- 8 Memory :- 32 Now, in my deployment.yaml file for that service, I have mentioned limit: cpu: 11 request: cpu: 11 It is giving error, insufficient cpu...
Dinesh Ahuja
1

votes
1

answer
412

Views

pip search finds tensorflow, but pip install does not

I am trying to build a Django app that would use Keras models to make recommendations. Right now I'm trying to use one custom container that would hold both Django and Keras. Here's the Dockerfile I've written. # myproject/docker/app/Dockerfile FROM python:3.7-alpine # I've tried 3.5, 3.6 and 3.7 R...
julka
1

votes
1

answer
95

Views

.net core web api app with https in docker

I have the simplest possible Web Api app in .net core ( with the default api/values api you get upon creation) I've enabled HTTPS so in debug it works, and kestrel reports: Hosting environment: Development Now listening on: https://localhost:5001 Now listening on: http://localhost:5000 When I run...
Greg Balajewicz
1

votes
2

answer
154

Views

Peer exit immediatly after starting with “fatal error: unexpected signal during runtime execution” with Fabric1.4 on Ubuntu18.04

I'm using Fabric v1.4 on Ubuntu 18.04.02LTS. I installed everything on this machine this week following the tutorials, so I got the Samples, Binaries and Docker Images of v1.4 (latest), like: hyperledger/fabric-peer 1.4.0 304fac59b501 5 weeks ago 157MB hyperledger...
Tommaso Martin
1

votes
2

answer
162

Views

ZuulException (SendErrorFilter) at first call

I am building an application by Spring Cloud ,Spring Boot and Docker. Entire application is working fine. I have couple of micro-services. Each of the project is running on Docker. When I try to consume my micro-services through Zuul API Gateway I am getting an error for the 1st call. But if I refre...
Nick
1

votes
1

answer
29

Views

How to run .net unit tests in Docker without installing the whole SDK? [closed]

Is there a way to run .net unit tests (xunit or others) in Docker without installing the whole SDK? I would like to have a minimal Docker image that would be use exclusively to run my tests.
Stephane Simard
1

votes
1

answer
23

Views

Missing installed package on Docker image using docker run command

I have run some docker images using this command C:\Users\muhammad.iqbal>docker run -it fedora [[email protected] /]# yum install -y nano This images works and i could install nano package inside this fedora images. But when exit the images and tried to run again the installed packages, nano, it's s...
Gagantous
1

votes
2

answer
54

Views

docker container reading another container logs

I want to create a docker that reads the logs, stdout and stderr from another container 'factorio' on a continuous basis. I know i should do this as a volume but my best current option is sudo docker logs -f factorio &> /var/log/factorio/current.logs I run the above in a screen. I had it as a back...
BrinkDaDrink

View additional questions