Questions tagged [docker]

Docker images, containers, hub, and everything related to the containerization platform

Filter by
Sorted by
Tagged with
0
votes
1answer
226 views

Why won't InSpec admit that port 5432 is listening inside a PostgreSQL container?

Background I'm trying to test a PostgreSQL container with InSpec 2.1.10, but I cannot get a simple port check to return true, even though Docker, netstat, and psql all report that the port is ...
6
votes
2answers
6k views

Why should you do port mapping for docker containers?

I have been using docker for a few months and I am just a developer not a DevOps or a networking person. However, I came across a docker-compose which maps an external port to an internal port. ...
1
vote
1answer
2k views

Jenkins pipeline + Docker integration

I have a CI server which has Jenkins installed in the host it self, and I want to run builds and tests inside Docker containers. Until here it works like it should, but I also want to deploy ...
1
vote
1answer
206 views

Docker & Django - what directory does localhost point to?

I'm completely new to Docker and Django and I'm having trouble getting my Docker app to serve inside Django. Currently, I'm running my docker container with this command: docker run -it --name web -p ...
3
votes
1answer
7k views

Docker swarm replica stays 0/1 and service stays in status new

I have a problem with my docker swarm. I created a new service with the following command: docker-compose config | docker stack deploy -c - serviceNameX --with-registry-auth The docker-compose file ...
1
vote
1answer
1k views

Build isolation - Docker container based builds in Bamboo 6.4.0

Finally, it is possible in Bamboo to let a build run in a Docker container without dealing with agent configuration. The system just asks for a image. Now, what about the underlying infrastructure, ...
2
votes
1answer
62 views

How do I get Openshift to let Tomcat retain it's hosted site's changes

I have a pod in Redhat Openshift running Tomcat and inside Tomcat I have Ozone Widget Framework, my site hosted in Tomcat. I have executed the oc command to use my existing configuration so that my ...
3
votes
1answer
179 views

Continuous delivery workflow: Build script for PHP Composer (Drupal) on Docker

I'd like to set up a continuous delivery workflow for our new Drupal site. When someone pushes to our Git repo (typically) master branch, a build job on our CI server is triggered. This job will check ...
3
votes
2answers
7k views

VPN container providing access to host's LAN?

I'm kinda new to this Docker thing and I'm interested in getting a biffed up VPS for some containers (websites/data, mysql, nginx, rocket.chat, etc) but I wouldn't like to access them in the wild (...
4
votes
2answers
3k views

Docker MongoDB image - How to specify credentials other than in the compose file?

I'm using this docker image https://hub.docker.com/_/mongo/. That image provides a way of initializing a mongodb root database user with env variables which I can specify in the compose file as ...
6
votes
1answer
376 views

Build Design - Docker vs Fedora's Mock

This post is migrated from a reddit post. Parts in bold are to adopt it to SE's format. I'm talking with companies to help streamline/combine their build process. They must do it together and their ...
1
vote
0answers
750 views

Understanding Docker swarm networking and ports accessibility on the host [closed]

Given the simplest example, the test swarm consists just of one node so all containers run in one place. The stack is setup to run in a custom Docker network; the containers are not directly mapped ...
0
votes
1answer
42 views

How to dimmension VMWare VM linux servers to run kubernetes container clusters?

I'm designing a web apps and web services hosting platform using kubernetes clusters of VMs running docker containers (web services, web apps, databases). This application hosting platform will be ...
3
votes
1answer
48 views

trigger command on registry update

I'm fairly new to CI/CD so this is probably a noob question. Anyway, here's my current setup: * Bitbucket repo * Registry service on AWS (ECS Registry) * Pipeline on Bitbucket that builds a docker ...
4
votes
1answer
3k views

How do I provision a Windows Docker container with Ansible?

I want to provision a Windows Docker container with Ansible, but I am confused about how exactly it will work. For instance if I use Packer with Linux, I know I can run ansible (which is ansible ...
2
votes
1answer
4k views

Persistent data in MySQL with Docker

If I startup MySQL server during docker build (derived from official MySQL Dokcer Image) in two different statements, would be database files be pertained? I would say yes, but it seems to be wrong. ...
1
vote
1answer
1k views

How to integrate docker-compose or docker run command arguments into SCM and Jenkins build?

When I do docker run I have to give extensive argument options for my container setup. To mitigate this and ensure all developers are using the same arguments I switched to docker-compose. Now ...
2
votes
1answer
808 views

Automated patching of docker images

Docker and other container images have become important building blocks especially for software production pipelines. Unfortunately, several researchers (e.g. BanyanOps) have shown how vulnerable ...
0
votes
1answer
855 views

Using Jenkins to control docker image build flow

I'm trying to figure out the proper way to get build environments into a CI pipeline. What I want to achieve is: someone pushes to the docker source repo (not registry, a repo with the docker folder)...
2
votes
1answer
4k views

Permission errors with non-root USER when running on Linux

I have been getting some unexpected failures with the execution of my Docker images when running on my Ubuntu 16.04.3 LTS machine. I'm using Docker version 18.02.0-ce (edge), installed from apt. I've ...
2
votes
1answer
190 views

Error when using 'ansible-local' provisioner with Docker container

I'm getting an error when running the ansible-local provisioner with a docker builder in Hashicorps Packer. My template (template.json): { "builders": [ { "type": "docker", ...
3
votes
1answer
299 views

Ansible Remote provisioning not working in Docker container build

I have a Packer template to start with a Docker container and provision it. The shell script provisioners seem to be working, but, while the playbook runs and seems to succeed, unlike the shell ...
2
votes
1answer
363 views

Is a decentralized Docker swarm possible?

I want to run services in our office in containers. The problem I have is that we do not have a spare machine available to act as the dedicated host. So I am considering creating a swarm using ...
14
votes
1answer
10k views

Dockerized Flask: Connection reset by peer

Trying to connect to a dockerized Flask app fails with error 104, 'Connection reset by peer' using this minimal example: app.py: from flask import Flask app = Flask(__name__) @app.route("/") def ...
0
votes
1answer
42 views

Docker image delivery lead time SLA

What is the best practice either reference value in terms of an SLA spec to expect the infrastructure to: deliver a Docker image say for 100MB and 1GB size as reference? unpack the above? instantiate ...
2
votes
4answers
389 views

Update production server (apache, wordpress, mysql) on docker containers, from staging server

For our web servers running on Docker containers (Apache, mysql, wordpress, etc) we have a production and a staging virtual machines. DEVs and content team work on staging and then I tar ball the ...
2
votes
1answer
2k views

Docker Compose V3 app container can't access couchdb container

I am trying to connect to couchdb through the container but my app is not seeing it. However if I use the external address 123.456.789.123:12345 (server_ip:external_port) it works but I need a ...
4
votes
1answer
1k views

What is the biggest Docker image on Docker Hub and how to find it?

The lowest boundary of a Docker image can be very small i.e. under 1 MB (busybox) or even zero bytes (scratch). Now for research purporses, I need to reference the biggest Docker image on the Docker ...
5
votes
2answers
2k views

Coupling docker registry and source control

What are the best practices (if any) for coupling a docker image registry with a SCM service (such as bitbucket)? I know a docker registry can live in artifactory, but how can I assure that the two ...
15
votes
2answers
9k views

How to deal with docker compose's naming convention of named volumes?

When defining named volumes in docker-compose.yml, their names are prepended with their parent folder name. This causes a problem when scripts outside of docker compose have to interact with them. The ...
0
votes
1answer
49 views

From a security perspective, to which location should one copy an app inside a docker image?

I use docker to deploy a lot of apps since a couple of years. Today I ask myself, should I copy my app to a different location in the docker image? I used to copy the file to the root, e.g. COPY . /...
1
vote
0answers
1k views

How to write Apache airflow dag for file watcher [closed]

Problem statement- New files arrive on NFS and looking for a solution (using Apache airflow) to perform continuous NFS scan (for new file arrival) and unzip & copy file to another repository (on ...
6
votes
1answer
7k views

How to populate docker volumes in a build step to be used by a different container

I currently have a Docker compose based web app that uses Nginx as a reverse proxy that forwards traffic to a Flask and Grafana docker instance. The task at hand is to integrate a SSG (static site ...
6
votes
1answer
4k views

Nginx reverse proxy setup issues with Docker containers

I have two running docker containers: A Docker container running Nginx that serves Angular app resource files that were copied into the Docker image on docker build A Docker container that is an api ...
8
votes
1answer
124 views

Strategy for deploying/hosting javascript-based static websites in containers

This comes up from time to time in several of our dev teams, without us having figured out the "right" way: We use a lot of react-based webapplications that "compile" into static websites that are ...
4
votes
3answers
22k views

How to connect to a docker container?

I have the following Dockerfile: FROM ubuntu:latest MAINTAINER Valter Silva RUN apt-get update RUN apt-get install -y apache2 ADD index.html /var/www/html/ CMD /usr/sbin/apache2ctl -D FOREGROUND ...
2
votes
1answer
164 views

Why can I build this image from Docker for Mac but not on Docker CE for Ubuntu?

Here's my Dockerfile: FROM php:5-fpm RUN apt-get update RUN apt-get install -y php5-mysql RUN apt-get install -y php5-xdebug RUN apt-get install -y php5-mcrypt RUN apt-get install -y php5-gd When I ...
1
vote
2answers
195 views

Automated Docker swarm reinitialization and token distribution

Imagine you want to reset your Docker swarm from time to time. How do you distribute join tokens to those zillions of nodes? How much automation is possible here?
2
votes
1answer
1k views

Traefik configuration issue with local proxy

Edit: I have updated my configuration to reflect Henrik Hoegh's tutorial. I am still running into issues. I am setting up a local development environment with lots of docker containers running ...
1
vote
1answer
152 views

How can integration tests for micro services be written?

Writing unit and integration tests for individual micro services is part of standard development processes. However, how can these services be tested with one another? And then integrated into a CI ...
4
votes
4answers
262 views

Docker on Development Workstations

I recently had an interesting discussion with a colleague. We have different perspectives on what is required to develop Docker containers. I won't say who believes what, to keep from prejudicing ...
1
vote
1answer
1k views

Migrate Rancher host from server to server

I have 4 Rancher servers: one for each environment: dev, sandbox, staging & prod. 3 of them are of an older Rancher 1.4 version (sandbox, staging, prod) & are hosted on OVH hosting, the one ...
8
votes
1answer
640 views

Should worker processes of web applications be placed in separate containers?

My setup is based on a Flask app that has a PostgreSQL and Redis database. In addition, a worker process is started to handle asynchronous tasks such as sending emails. I use Gunicorn to create ...
1
vote
1answer
3k views

Apache container cant access php files mounted in /var/www/ - 403 error

I want to run my php website in a container with apache and php7 I am using this docker image : https://hub.docker.com/r/nimmis/apache-php7/ I run Fedora so I enter the example command given in ...
0
votes
1answer
640 views

Run docker inside a VirtualBox of Windows Server 2016 (GUI) on Mac OS

I have downloaded the Windows Server 2016 iso from Microsoft for evaluation. I then installed it via VirtualBox on my Macbook Pro running the latest Mac OS (High Sierra). I downloaded Docker for ...
2
votes
0answers
234 views

Configuration for reverse proxies in a local Docker/Apache/PHP environment [closed]

I am refactoring my local environment from MAMP-pro to PHP/apache/Docker. What is the proper configuration to implement a reverse proxy (in order to maintain the named-url site functionality of MAMP-...
10
votes
3answers
2k views

Why is environment variable mangled in docker compose environment file

Context: docker-compose to start several containers, including Gunicorn that calls a Flask app. I'm using an environment file web/env.gunicorn to store my Gunicorn startup configuration. This file ...
14
votes
3answers
10k views

Why are unnamed volumes created when `docker-compose up` is run and do these double after issuing `docker-compose down && docker-compose up`?

When starting a docker compose application, it creates named volume the first time around and then additional volumes each time it is started. Is this the normal behavior in that it creates ...
6
votes
1answer
992 views

Networking between Docker containers

I have a docker container 'A' on a host 10.11.12.13 listening on port 0.0.0.0:8443->8443/tcp I have another container 'B' on same host how wants to talk to 'A' on 8443 via host. Thus when I run ...
2
votes
1answer
814 views

Real-World Validating the Integrity of a Docker Container

I'm interested in information and experiences surrounding Docker security. I'd like to understand ways that a user/client could validate the contents of an image to ensure that the packaged ...

1
14 15
16
17 18
20