Questions tagged [docker-in-docker]

16166 questions
1

votes
2

answer
159

Views

Google Kubernetes storage in EC2

I started to use Docker and I'm trying out Google's Kubernetes project for my container orchestration. It looks really good! The only thing I'm curious of is how I would handle the volume storage. I'm using EC2 instances and the containers do volume from the EC2 filesystem. The only thing left is th...
guidsen
1

votes
2

answer
862

Views

Edit source code in Docker

I am running on my local machine a Drupal site with its MySQL database, and the source code is split into many Github repositories (one for each module). As making the website running on a new machine is very time-consuming for all the repositories and migrating the database, I was thinking if Docke...
Arturo
0

votes
0

answer
6

Views

How can a linux container work on windows without a linux virtual machine (ie: native support)

From what I understand, the container includes all dependencies to run, but all containers running on the same platform whether it's a VM, or bare-metal will share the underlying kernel. I believe I read somewhere that in order to run linux containers on windows, the Docker client spins up a linux b...
ARL
1

votes
0

answer
11

Views

How to connect multiple Ubuntu VM created on different platforms or different zone?

I have three instances of Ubuntu 18 LTS VM on AWS,Azure and GCP. I am trying to connect these VMs through docker swarm but worker node command not working on another instances. I tried by creating swarm network on three instances of AWS (on same network interface) and It's working fine. I also put...
Yogesh Jangir
3

votes
0

answer
51

Views

How to push an image to a docker registry using the docker Registry API v2

I'm a writing a docker registry api wrapper to pull images from one private registry and push them to another. Based on the documentation first I need to pull the manifest and the layers for an image:tag. Following Puling An Image I've successfully downloaded all the layers for a particular image...
mdo123
1

votes
1

answer
1.2k

Views

What files do you typically put in .dockerignore

I am building a Django application with docker. I would like to know for Django or general development work using docker, what files are typically included in the .dockerignore. I am thinking of the following for now: .git *.pyc
user2868104
1

votes
1

answer
4.4k

Views

mysql with Exited(1) from docker

Start learning docker and try to setup a mysql container. But it dies immediately with Exited(1). Following is the command used docker run mysql -e MYSQL_ROOT_PASSWORD=password1 Looking at docker ps, it does not show any running docker container with docker ps -a returns the following : CONTAINE...
gutterball
1

votes
0

answer
39

Views

Vagrant + Docker provider, struggling with static IP

​ I'm struggling with static IP assignment for Docker provider. ​ config.vm.define "dockeragent" do |dockeragent| dockeragent.vm.provider "docker" do |d| d.build_dir = "../installers/docker/" end dockeragent.vm.network :private_network, ip: "172.16.1.3" end ​ I want my container named dockerag...
jesusgn90
1

votes
2

answer
3.9k

Views

Docker and Volumes nocopy

I want to mount a directory from my host to a Docker container, and I want to make some modifications inside the container. But, when I modify the content on the mounted point, the changes are also reflected on the host. For example: $ docker run -d --name webserver01 -v /home/guest/app:/app After w...
mrbit01
1

votes
2

answer
1.4k

Views

Docker-compose tutorial not working “python: can't open file 'manage.py”

I am running simple Docker-compose example shown here Here is Dockerfile: FROM python:2.7 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code/ Here is docker-compose.yml: version: '2' services: db: image: postgres web: buil...
Alexander Tyapkov
6

votes
2

answer
493

Views

How to start service only when other service had completed?

Using compose I want to start a service only after another service has exited with code 0. I have mutiple needs for this functionality. The basic need is where I have: database service database migration service application service The database service will start an empty database. My app needs it's...
Robert3452
1

votes
1

answer
1.1k

Views

Cannot connect Npgsql to Postgres DB running on Docker

I have a docker container with a .NET app with the following code: var pgsql = OpenDbConnection("Server=localhost;Database=postgres;Username=postgres;Password=MyPass;Port=5432"); private static NpgsqlConnection OpenDbConnection(string connectionString) { NpgsqlConnection connection; Console.Error.Wr...
Arturo
1

votes
4

answer
778

Views

Detect if process executes inside a Windows Container

It's simple. I would like to detect with code if my process is running inside a windows container. There are examples but they are all for linux based containers. I'm looking for something unique and explicit to docker that can be used to make a safe conclusion whether a process is executing inside...
Alex Sarafian
1

votes
1

answer
904

Views

ECS: Environment variables set in task but not present in container

I have a task definition that looks like this: > aws ecs describe-task-definition --task-definition ruby-on-rails-test { "taskDefinition": { "status": "ACTIVE", "networkMode": "bridge", "family": "ruby-on-rails-test", "placementConstraints": [], "requiresAttributes": [ { "name": "com.amazonaws.ecs.c...
aeldaly
1

votes
1

answer
528

Views

Docker Python File Input Selector

I'm trying to configure a Docker image so that a user can type in "docker run image" and have a window pop up to select the input file. I tried to use Tkinter when creating the Docker image, but the Python script errors out when it tries to load Tkinter. Since Tkinter did not work I tried to just sw...
DLee
1

votes
2

answer
259

Views

What would the deploy.sh file look like for Gitlab CI?

In the Docker registry docs on the gitlab Site they give an example where the deploy stage has: deploy: stage: deploy script: - ./deploy.sh only: - master What would the deploy.sh file look like? In either pseudo code or real code.
1

votes
1

answer
2.3k

Views

Saving mongodb on volume using docker-compose

In my project I have few container managed by docker-compose. I would like to store data from mongoDB on persistent volume. MongoDB seems to store data in /data/db but files are not transferred to my host file system and they disappear after rebuilding container. Here is my docker-compose config fi...
plewa1a2a3a
1

votes
3

answer
1.2k

Views

docker stack communicate between containers

I'm trying to setup a swarm using docker but I'm having issues with communicating between containers. I have cluster with 5 nodes. 1 manager and 4 workers. 3 apps: redis, splash, myapp myapp has to be on the 4 workers redis, splash just on the manager myapp has to be able to communicate with redis...
Bogdan Boamfa
0

votes
2

answer
20

Views

How to run local Docker Image

I have an image that I want to run on my local machine. I took this image from my friend and not from docker-hub or any repository. The file shared is in ".img" format. I am able to import this image on docker but unable to run. What I did : 1) Compress the image file from ".img" format to ".tar.gz...
Dhanesh Agrawal
0

votes
0

answer
3

Views

Tkinter display error running in Ubuntu container

I am new to docker and ubuntu. I am currently trying to display a simple Tkinter GUI in an ubuntu container from a docker toolbox. Already installed python 2.7 in my ubuntu container and when i run my .py file i will receive the following error: _tkinter.TclError: no display name and no $DISPLAY en...
Qi Ming
0

votes
0

answer
11

Views

nginx port redirection sends empty json object

I have a docker-compose app with an nginx 'gateway' that redirects request from port 3000 to port 5000 but sends an empty object. When the container on port 3000 makes a request to '/api/example', the nginx container will redirect the request to the container on port 5000 that will save the object...
Aaron Valdez
1

votes
1

answer
1.5k

Views

running conda's jupyter on docker

I am using the docker image continuumio/anaconda3 and want to start jupyter notebook server with conda via browser ... docker run -i -t -p 8888:8888 continuumio/anaconda3 /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook --notebo...
Mumbaikar007
1

votes
1

answer
2.2k

Views

zaproxy: unable to find image 'in:latest' locally

I followed example from : https://zaproxy.blogspot.com/2017/06/scanning-apis-with-zap.html install Docker on my Mac executed docker pull owasp/zap2docker-weekly executed example: docker run -t owasp/zap2docker-weekly zap-api-scan.py -t \ https://www.example.com/openapi.json -f openapi it works exec...
Alex
1

votes
0

answer
7

Views

Prevent Chrome-Headless from enforncing ssl

Setup I'm running chrome-headless as a container in my docker-compose project. My main app (the one I'd like to test) is named 'app' inside the compose file. To connect from the chrome-headless container to my app, I'm using the dockers internal containerlinking: http://app:3000 docker-compose.yml v...
Seltsam
1

votes
1

answer
302

Views

Running gulp in Docker compose - does not create files

I have issues where gulp is not making any files. It says finished, but no file is being created. If I log in to my docker instance using: docker exec -t -i myservice-service /bin/bash and if I run the gulp command, then it creates it properly Then all the files defined in the gulpfile.js are creat...
1

votes
1

answer
2.1k

Views

ERRO[0001] error waiting for container: context canceled

Getting error while running docker image. It seems to look like the problem is on my pc. I'm using MacOS 10.13.6. I have followed steps to create a docker image. Sanjeet:server-api sanjeet$ docker build -t apicontainer . Sending build context to Docker daemon 24.01MB Step 1/2 : FROM alpine:3.6 --->...
Sanjeet kumar
1

votes
2

answer
1.3k

Views

How do I use environment variables in .env file in docker-compose.yml?

I am trying to use an environment variable in the docker-compose.yml file. I have a file my-great-env.env. Here is how they look: docker-compose.yml version: '3.4' services: blahblah: images: greatimage volumes: - "${MY_PATH}:c:\\FinalFolder" my-great-env.env MY_PATH=C:\the\path\to\folder When I try...
noblerare
1

votes
1

answer
272

Views

Typescript compilation fails (in Docker) when NODE_ENV=production

So I have a create-react-app-ts app that I would like to Dockerize and host on Zeit Now. Everything works fine locally, running yarn tsc and react-scripts-ts build works great. Creating the Docker image also works great from the following Dockerfile: FROM mhart/alpine-node:10.9 WORKDIR /usr/src AR...
jhm
1

votes
1

answer
329

Views

Docker: Empty response from server

I am having trouble to connect docker container, server returns empty response however the configuration seems to be correct. When i use docker-compose up command everything seems fine and working however i am getting empty response from server. I double checked the port mappings however i couldnt...
Halil Irmak
0

votes
0

answer
5

Views

Kubernetes and Docker - Running single core application

Background I have Google cloud Kubernetes which running my application from Docker image. My nodes pool are machines with 8 CPUs. The Problem One of my applications are not using the CPUs well because it's written with Python (read more about python Global Interpreter Lock - GIL - problem). So, the...
No1Lives4Ever
1

votes
0

answer
10

Views

I am using `eureka docker container` but it is giving problme

I am using eureka container but unfortunately it is not working properly. Docker-compose.yaml configserver: image: 1.2.3.4:1234/configserver container_name: configserver ports: - 8888:8888 volumes: - /tmp/logs:/tmp/logs env_file: - ./docker.env eureka: container_name: eureka ports: - 8761:8080 volum...
Abhijeet
4

votes
2

answer
144

Views

Started container with docker run, now it is not showing up in docker ps -a

I started a docker container with docker run, like this: docker run \ -d \ --name plex \ --restart unless-stopped \ --network=host \ -e TZ="" \ -e PLEX_CLAIM="" \ -v :/config \ -v :/transcode \ -v :/data \ plexinc/pms-docker Link to GitHub.com/plexinc/pms-docker The docker container is running, as I...
Tomas Jacobsen
0

votes
0

answer
2

Views

Dokku + docker - wrong ip after autoreset - how to deal with it?

I'm junior dev. I have a known problem: (https://github.com/dokku/dokku/issues/2602) Wrong ip used for docker container after auto restart. In nginx config there is still 172.17.0.18:5000 while app after restart has 172.17.0.6:5000. command: dokku nginx:build-config ws -t fixs the problem but I hav...
Adrian Kurzeja
4

votes
0

answer
138

Views

Debugging DNS resolutions in kubernetes

I have initialized kubernetes v1.13.1 cluster on Ubuntu 16.04 using below command: sudo kubeadm init --token-ttl=0 --apiserver-advertise-address=192.168.88.142 and installed weave using: kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')" I have...
S Andrew
0

votes
0

answer
18

Views

Connect to running docker application

I am currently running a server application, which should open a GUI on a local URL (https://appname.io), but I am not able to make it work. The app is running and exposing the port 443, which is mapped to localhost:443. It looks like this: dc9ca6e28610 app "run-server.sh" 14 mi...
User2332
1

votes
2

answer
1.2k

Views

docker daemon -H fd:// error out in shell

I start the docker daemon with -H fd:// in shell, and it error out. The OS is CentOS7. # docker daemon -H fd:// FATA[0000] No sockets found I can start with systemctl start docekr. # cat /etc/systemd/system/docker.service.d/docker.conf [Service] ExecStart= ExecStart=/usr/bin/docker daemon -H fd://...
firelyu
1

votes
1

answer
162

Views

Handling software updates in Docker images

Let's say I create a docker image called foo that contains the apt package foo. foo is a long running service inside the image, so the image isn't restarted very often. What's the best way to go about updating the package inside the container? I could tag my images with the version of foo that they'...
Jack Wilsdon
1

votes
1

answer
1.2k

Views

Enabling logging for rabbit mq server within a docker image

I am installing rabbit mq server within docker using the steps mentioned @ https://hub.docker.com/r/_/rabbitmq/ . The installation went through fine, got my rabbitmq working perfectly fine. I am unable to find the rabbit mq logs. How to control and turn on the logging?
user170008
1

votes
3

answer
1.9k

Views

Can't connect to mysql pod in Kubernetes when using Secrets for password (Access denied)

I try to setup a mysql database in Kubernetes. I configured a ConfigMap to store the Database name and a Secret that contains the root password, the user and the password for the user. When I try to connect to the DB afterwards (Inside the container with mysql cli and from outside with IntelliJ Data...
Steffen Schmitz
1

votes
2

answer
485

Views

Why does my Docker container not return control to the terminal after starting?

I have a shell script that I use to export Env variables. This script calls a python script to get certain values from a web service that I need to store before running my primary python script. I've tried using a RUN . /bot/env/setenv.sh, but this doesn't seem to make the env variables available in...
MrDuk

View additional questions