The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

What is the right way to manage app configuration for java spring apps running in AWS and kubernetes?

I'm facing several problems related to application configurations Public and Private API almost every service public and private API. Public API is available from external network and covered with ...
2
votes
1answer
14 views

Multiple Microservices in CI environment

hey we have a GitLab stage and inside that we need to start an environment with several containers we pull from a local registry. We use compose and a docker in docker solution for that at the moment....
2
votes
0answers
10 views

Can you use docker-machine from Bitbucket Pipelines?

I have some servers where I have nginx installed on the base system in reverse proxy mode, and then use Docker deployments to push out containers where just the local HTTP port is exposed. We don't ...
3
votes
1answer
13 views

Provisioning a server on behalf of a user on GCP/AWS/Azure and probably relinquish access

I'd like to build a service where I run a custom setup script on behalf of a user on an t2.micro equivalent instance but be able to probably relinquish access to the server. Any advice on the tech ...
2
votes
1answer
47 views

Deploying software that depends on a virtual machine using Docker

About I am developing a piece of software which consists of a Node.js application which controls a virtual machine that runs Android-x86. Also there are some pieces of the Android SDK like ADB the ...
2
votes
1answer
51 views

Gitlab CI error during connect: Get http://docker:2375/v1.40/containers/json?all=1: dial tcp: lookup docker on xx.xx.xx.x:xx: no such host

I've recently created a new repository in gitlab.com, started a new Ubuntu instance in digitalocean, installed docker and gitlab-runner in the ubuntu instance. Also, did gitlab-runner register and ...
2
votes
0answers
11 views

Issue building deb package using Docker/Windows

I am trying to create a way for our developers to be able to build deb packages from their Windows machines. We would like to reuse what we have for *nix so I've written a few batch scripts which are ...
2
votes
0answers
8 views

Access private DockerHub repo in Docker Swarm

I am trying to deploy a docker swarm using Digital Ocean's docker-machine driver. This is currently a single node that contains several public DockerHub images, and one private. I am having ...
1
vote
1answer
31 views

Set container registry auth key via command line/env variable

I'm trying to set up Jenkins CI pipeline which will be used to build docker images. I have my auth key stored in Jenkins credentials and I want it to be loaded on start in placed in some environment ...
1
vote
1answer
24 views

How to bring a docker data container to Kubernetes?

I have an application that relies on 4 docker data containers for the data it needs to run some tests. At the moment I have their docker-compose file and their images but I don't have access to the ...
0
votes
0answers
8 views

Access RabbitMQ on Host machine from Vagrant Box

I have 2 apps running inside vagrant boxes and RabbitMQ running on Host Machine. Vagrant box network is private_network. RabbitMQ : 127.0.0.1:15672 (docker file) Vagrant Box 1: 192.168.33.116 Vagrant ...
1
vote
1answer
18 views

Why does Docker define invalid IP address of service?

I have web-app with PHP and database in docker-compose file: version: '2' networks: default: driver: bridge services: yii2-app: build: context: ./web ports: - "80:80" ...
3
votes
1answer
48 views

Docker Persisting Data During Build

I am trying to create a custom container which also contains MongoDB (hence not using the official MongoDB container). I am trying to add authentication to the database, and I think I am having an ...
0
votes
0answers
7 views

Anyone know how to use $CIRCLE_BUILD_NUM across different jobs in CircleCI?

I use $CIRCLE_BUILD_NUM in different jobs in a workflow (but it seems like that get incremented in between jobs of the same workflow)? I did some research and it looks like I can switch to ...
19
votes
7answers
1k views

How to create the smallest working docker image every time?

Aim: to create the smallest working docker images every time Current REPOSITORY TAG IMAGE ID CREATED SIZE a-docker-image latest x 42 ...
0
votes
1answer
26 views

What package manager does the gitlab docker CI image use?

I'm trying to install additional software but apt-get is not available. So in my .gitlab-ci.yml file I have: image: docker:stable What is the image based off from?
0
votes
1answer
8 views

Docker container stuck in “new” state - Docker swarm - service stack

I am deploying a service stack to a Docker swarm like so: $ dt stack deploy --with-registry-auth -c tmp.stack.docker-compose.yml tmp Creating network tmp_my-network Creating service tmp_my-service $ ...
1
vote
1answer
24 views

Ruby and Rest service in Docker

I am new to DevOps on the Ruby stack. I have Ruby on Rails application. It uses several Rest based service. Each of the services is deployed with Docker. There are no DevOps efforts now. We use Gitlab ...
2
votes
3answers
68 views

How to automatically update Docker containers in development?

What is the best way to use Docker in development so that a container is automatically updated each time you make a change to the codebase?
1
vote
2answers
35 views

How to clean up old images in docker registry with jenkins

I have a jenkins multi branch project, that builds on every commit and pushes the image to our private registry: docker-reg:5000/<project>/<branch>:latest docker-reg:5000/<project>/&...
0
votes
0answers
13 views

How to monitor docker containers using icinga2

The icinga2 is a great tool to monitor applications and services using custom monitoring checks written in almost any language. But the concepts of registering the hosts in icinga2 and running checks ...
1
vote
1answer
41 views

How to install docker in Raspbian Virtual Machine

I first installed docker in raspberry pi using: https://iotbytes.wordpress.com/setting-up-docker-on-raspberry-pi-and-running-hello-world-container/ which successfully did. I tried doing the same with ...
1
vote
1answer
99 views

Install MDB2 in docker container while PEAR is down

While pear is down, the following instruction in my dockerfile is failing: RUN pear install -o --alldeps MDB2-beta && \ I've searched on the internet how to install MDB2 without pear, ...
2
votes
1answer
418 views

running a phpUnit test within a docker container

i want to run a specific version of phpUnit WITHIN a docker container. This container will use a specific version of php. i.e php:5.6-apache Its a lareval application. i have install phpunit via ...
0
votes
1answer
135 views

Jenkins run build in docker on server (withDockerServer not working)

I am trying to run my build inside a docker; but I don't want the docker to run on the jenkins master but on another server that has docker running. What does work: inside jenkins configure a docker ...
0
votes
1answer
59 views

container on same network with host

Our application is a combination of 4 different applications. The graphics part is running on a host and other 3 applications are running on 3 different VMs. Which uses bridge networking. eg. ...
1
vote
1answer
48 views

How can I assign an IP address to a docker container different from the host's IP?

Objective: Assign fixed IP address to Docker container (Unifi Controller instance). History: I fetched the unifi controller image from Docker Hub to my Synology Docker host. The container of the ...
0
votes
0answers
8 views

Are there any multi-host container orchestration tools which allow USB device mapping? Or any production grade solutions/hacks?

Docker provides a --device flag for individual containers to map device ports (USB devices for example; ttyUSB0, ttyACM0) at run-time. This feature is great but seems to disappear when we abstract ...
0
votes
1answer
839 views

Error with declaring volumes in Docker-compose, 'no such file or directory, open '/app/package.json'

I am a very beginner in the Docker world, while I am trying to experiment with Docker file and Docker-Compose I am facing the below error, I now am able to understand it is related to declaring ...
0
votes
1answer
31 views

How to see previous version of a Docker image?

I am looking for a netframework Docker image with .net 4.7.2 and netcoreapp2.2. I searched on the main docker website: DockerHub, .NET Framework By Microsoft without success. I also check the ...
1
vote
2answers
100 views

How to manage Docker images and their child images in a pipeline?

I have various Jenkins agents images and I am trying to add automation to it. I have a base java image called agent-base and those who inherit from that one e.g. agent-ansible, agent-terraform and so ...
0
votes
1answer
20 views

Cross-CI on Windows and Mac

I am deploying CI with several runners - however they are all based on the Docker executor on Linux. Is it possible to use Linux runners to test applications on Windows or Mac instead? I understand I ...
1
vote
2answers
41 views

How to secure persistent user data with docker on client location?

I'm working on a system where a dockerized application must run on client side machines (Ubuntu PC), with some sensitive data that must persist between runs that we want to limit access to. In ...
1
vote
2answers
2k views

Debug Docker networking and Windows 10 firewall

Given: Windows 10 / 64 bit Docker edge 17.11-ce-win40 Experiment: docker run -it --rm -p 8888:8080 tomcat:8.0 Expected behaviour: If all network settings are okay, Tomcat must be reachable ...
0
votes
1answer
28 views

Docker bridge network Configuration for containers

I have an Angular application deployed in the container . If I log in to the container I can curl to the port 4200. I have mapped to port 9001 to connect from my host . But I can't curl from my host ...
1
vote
0answers
31 views

Trying to migrate CI/CD process from Jenkins to Gitlab Runner + Docker on Windows

I need to improve the CI process of my projects, which is basically composed of the following things: a Linux server, that contains a Jenkins master a VM with Windows 10, with a Jenkins slave, ...
0
votes
0answers
4 views

Application Laravel access DB of LAN

I have the following file docker-compose.yml version: "3.3" services: php7.3: image: quay.io/vesica/php73:latest container_name: php73 volumes: - ./www:/var/www/html - ./etc/...
0
votes
1answer
18 views

Docker container and their IPs on overlay (swarm) networks

I have a Docker overlay network which includes 2 containers and the loadbalancer for this network: "Containers": { "0ece6b958aa6b451478b5004ba1b1681ec91b718b99a0c2c88b79d5e8e135a66": { ...
2
votes
1answer
34 views

How to properly manage mupltiple environmental variables with Gitlab CI and Docker Swarm?

In our project we are using Docker and we have multiple services with a pile of environmental variables (mostly credentials to various dbs, mail, samba, 30+ entries in total). It all worked well with ...
0
votes
1answer
17 views

How do I do a dry run with docker-compose?

I want to know what docker-compose is going to do before I do it. Is there a tool or flag which I can use to see what docker-compose would do without actually stopping containers and starting new ...
0
votes
1answer
28 views

How to manage services inside the container?

Systemctl/service commands are not working on a container which is built by using centos:centos7 image. Can anybody help me here?
0
votes
1answer
19 views

How to get Docker Container stats using DataDog API?

I have a running DataDog-Agent on a Docker server. Is there a function in the DataDog API to get the stats of every single container, so I could print the stats to an external Webpage? Or is there ...
0
votes
0answers
393 views

How to enable CORS in Geoserver on Docker?

I want to enable CORS in Geoserver (installed with Tomcat 8). The goal is to access Geoserver maps from Kibana. I made some changes in tomcat/conf/web.xml. But it only works when I install Geoserver + ...
2
votes
1answer
28 views

How to create a preemptable docker container?

Is there any way by which I can set a lifetime for a container after that much of time it should be stopped automatically and only awake when someone send a request. I wanted something like ...
0
votes
1answer
115 views

Docker machine connection with https

I am new to Docker. I installed Docker tool box on my Windows machine. Using pom.xml I want to generate docker image . pom.xml:- <plugin> <groupId>com.spotify</groupId> <...
0
votes
1answer
109 views

PHP-FPM with Nginx in different containers (share init.d response between)

I have a Docker setup for my project with PHP-FPM, Nginx and many other services required by the application, but inside the PHP app I've to check the init.d/nginx configtest for new dynamic Vhosts (...
1
vote
0answers
756 views

Docker compose curl healthcheck on official nginx image not working

We have the following DockerFile FROM nginx RUN apt-get update && apt-get install -y curl \ && rm -rf /var/lib/apt/lists/* COPY nginx.conf /etc/nginx/nginx.conf EXPOSE 443 WORKDIR /...
0
votes
0answers
15 views

How do I avoid the error when serving node/webpack app by Docker?

I have created a node webpack application which is accessible via localhost:3000. If i put all this work in a Docker container (from node:12.2.0-alpine) and start it via docker-compose up, I get the ...
1
vote
1answer
633 views

How do I make NFS volumes reliable in Docker?

I host various docker containers on my Ubuntu 18 machine. A few of them require storing their data on my Synology NAS. At first, I was using the host machine's /etc/fstab to control NFS mounts, which ...
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 ...