Questions tagged [docker]

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

192 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
2answers
87 views

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. Eg: agent-ansible, agent-terraform and so ...
1
vote
0answers
185 views

Error running Team City build step in Docker image: "ENOENT: no such file or directory, lstat 'C:\ContainerMappedDirectories'

I'm running a Team City build that runs a command line step in a Docker image (stefanscherer/node-windows:8.11.2-nanoserver). The step is simply this: npm install Note that Team City allows you to ...
1
vote
1answer
28 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
0answers
73 views

Dedicated physical network interface to containers in an isolated way?

I haven't found what I want to do though it seems basic architecture. On my host I have multiple physical interfaces and docker0 by default (that is connected to which interface?!) One interface ...
1
vote
0answers
146 views

Using IPTable to restrict traffic to a Docker container

I've spun up a web server that listens on port 8080 like this: # docker run --rm -p 8080:8080 python:3.6 sh -c "cd tmp && python -m http.server 8080" I want to dynamically adjust iptables ...
1
vote
0answers
511 views

Docker container is losing network connectivity regularly

I have a docker container that runs on a Debian instance in the cloud. Everything runs ok, but after approximately one day, container loses connectivity and docker info returns a warning about ...
1
vote
2answers
517 views

Join a Linux Docker swarm with a local Windows Docker for test purposes

I'm currenlty trying to connect/join a Linux Docker Swarm cluster with my Windows machine in order to test a stack without sending the stack over and over to my test cluster under Linux. My problem is ...
1
vote
0answers
70 views

How to avoid running on the same docker swarm node when healthcheck fails x times

Let's say I have the following setup: swarm-00: Manager swarm-01: Worker swarm-02: Worker Now I start a new nginx service docker service create --replicas 2 --health-cmd /check.sh --restart-max-...
1
vote
0answers
110 views

How can I make my clients (host) use my Squid proxy inside Docker container?

As an Example, I have 1 client (IP: 192.168.0.200) and 1 host (IP: 192.168.0.15). If client want to connect to the internet, then in host will be created container which contains squid proxy (I pull ...
1
vote
0answers
543 views

Understanding Docker swarm networking and ports accessibility on the host

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 ...
1
vote
0answers
39 views

Docker for Windows - How to increase verbosity when doing a `docker build`

I find that when I'm building Docker containers in Windows I find myself waiting a lot with little information. By contrast, builds in Linux show lots of useful information. How can I get verbose, ...
1
vote
0answers
553 views

How to write Apache airflow dag for file watcher

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 ...
1
vote
0answers
36 views

How To Access Docker Client From Cloud Cluster

I am trying to create a Kubernetes Deployment out of a third party library related to my other question. This library requires pre-pulled docker images and will temporarily launch the containers as ...
1
vote
0answers
111 views

Running MySQLite3 with PHP PDO in a Docker Container

I'm currently trying to build a site in a Docker container running in an Ubuntu VM, which has Apache and PHP installed already. I want to be able to access Sqlite3 features with PHP using PDO. ...
1
vote
0answers
265 views

How to get eth1 ENI on AWS Instance to Respond to NodePort Requests?

Kubernetes 1.5 cluster running in AWS. Node1 (worker) has an additional network interface assigned to it with a static IP, so if you run "ip addr show" on the node you see eth0, eth1, and the gang of ...
0
votes
0answers
6 views

Why access is denied by GitHub when docker-compose is run to start docker containers?

I would like to set up airflow with docker on MacBook Pro with macOS 10.14.x. I have got zpencerq/docker-airflow:1.10.2 and followed the instructions at https://docs.docker.com/compose/install/#...
0
votes
0answers
8 views

Passing arguments to the same container that admits two different arguments in jar file to docker-compose.yml

First, I apologize if this is a topic already resolved, I think not because I've been reading and searching in the official forum and Stackoverflow and I can not find the answer. I've also been ...
0
votes
1answer
6 views

Why 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" ...
0
votes
0answers
15 views

xwiki (docker) installation on synology with 500 – Internal Server Error

im trying to lauch a xwiki-installation on my synology NAS. First i got the mariadb-packet and run it. Successfully i connected to the with myphpadmin and create a xwiki user and database. After than ...
0
votes
1answer
25 views

Gitlab CI\CD Error: Failed to create container volume for /builds/root Unable to load image

I've installed the Gitlab local server and also install the Gitlab-runner and everything needs to use the CI/CD tools. After that When I run the CI/CD tools to build and deploy the project, it makes ...
0
votes
0answers
3 views

Does Tomcat Realm + Redis support Cluster Environment?

Currently, my application is running with Tomcat 8 (single instance). We have planned to implement the cluster environment for high availability and performance improvements. We are using Tomcat Realm ...
0
votes
1answer
19 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
1answer
20 views

Container runtime Vs orchestrator

The terms container runtime and orchestrator always confuse me. Can someone please put these in simple terms? Thanks
0
votes
0answers
8 views

Dockerfile “ADD” equivalent for Packer

I am building a docker container with a Packer template, using the Docker builder. I would like to use this packer template to do something similar to the ADD command. According to the Packer ...
0
votes
1answer
10 views

How to list containers that are using redis/ubuntu image in Docker

I am trying to figure out the solution for the above question. I tried the commands docker ps -a -f "label=redis" and docker ps -f "name=redis", but that didn't gave any output. Any help?
0
votes
0answers
5 views

docker-compose environment variable which is not used is giving null(str) instead of None

I have a config file which has some LOG attributes like LOG: access_key = os.getenv('LOG_ACCESS_KEY') secret_key = os.getenv('LOG_SECRET_KEY') which I am trying to access it in python file. ...
0
votes
0answers
13 views

Can't connect to Nexus Docker repos with HTTPS connectors

I am using private Docker registries for my CI/CD pipeline. These are Docker repositories in my Nexus (NXRM) instance (which runs in a Docker container). Until recently, those repos only had HTTP ...
0
votes
0answers
11 views

Command returns 0.0.0.0 for IP but only for leader

I have a 3 node docker swarm cluster and I am trying to get the IPs of each one via docker node inspect node-1 --format '{{ .Status.Addr }}' but I am having an issue where when the node I am trying ...
0
votes
0answers
21 views

run docker-compose in context of other directory (docker-compose.yml is in other directory)

Say I have the following folder structure: MyProject/ |-- devenv/ |--|-- lamp/ |--|--|-- Dockerfile |--|--|-- httpd.conf |--|-- docker-compose.yml |--|-- .env |-- project_file.html |-- ...
0
votes
2answers
35 views

Is a ReplicaSet pulling a fresh image at every spin up?

I inherited an app without a ton of handoff information, and there's a Kubernetes setup with ReplicaSets and KOPS (and based on Docker containers). I am pretty new to Kubernetes Whenever one of the ...
0
votes
0answers
28 views

Gitlab + Kubernetes on GCE + DIND - how to get access to docker subsystem in the cluster?

Preliminaries I am using Gitlab Community Edition 12.0.3, in which I have standard project admin permissions but no more. The installation only has few and slow CI runners, so I went and created a ...
0
votes
0answers
36 views

docker-letsencrypt-nginx-proxy-companion certs for non-docker servers

We have an nginx reverse proxy at our company, which also runs certbot to generate SSL certificates for our backend servers. I wanted to replace that reverse proxy server with a docker container of ...
0
votes
0answers
43 views

Permission denied connecting to Docker daemon socket under Jenkins with Kubernetes Plugin

I have a docker image that is built from the ubuntu image and all I add is gradle and openjdk11 My jenkinsfile defines the containerTemplate as this: podTemplate(label: 'java11builder', containers: [...
0
votes
0answers
10 views

How to get GitLab on the cloud to run command with alias specified in the Dockerfile?

I'm trying to build an image with PMD to use in a runner with a project. I was planning to have PMD run a code analysis before the build and test steps. For that, I tried to set an alias for PMD ...
0
votes
1answer
26 views

docker mysql container not running suddenly

docker mysql container was working perfectl.But after restarting of the server and using the start command to run the conatiner it is not working.My other containers are all up and running as normal....
0
votes
0answers
73 views

“NetworkPlugin cni failed to set up pod” error when deploying Pod, while Deployment work

For testing purpose, I want to keep things simple and run a Python Docker image on Kubernetes. So I used a Pod as smallest unit, based on the official template from the Kubernetes docs: apiVersion: ...
0
votes
0answers
12 views

Python Azure Function using docker stopped working displaying error

We had a python azure function working on a docker using "FROM mcr.microsoft.com/azure-functions/python:2.0" and recently stopped working displaying the following error message: "The binding type(s) '...
0
votes
0answers
13 views

Install docker on Windows Server 2016 fails due to SHA256

I want to install Docker Enterprise Engine on Windows Server 2016. I follow the official documentation, open powershell and type: Install-Module DockerProvider -Force Install-Package Docker -...
0
votes
0answers
14 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 ...
0
votes
0answers
35 views

Docker ps shows a container that doesn't exist anymore

When I run docker ps I get a container ID that doesn't exist anymore. docker inspect and exec give me the Error: no such object message, and when I go to /var/lib/docker/containers/ there's no folder ...
0
votes
0answers
9 views

Docker COPY symlinks on windows replaces slashes to backslashes

I have an odd behavior that is occurring. When I am building a Dockerfile on my Windows Host that has a COPY command to copy a symlink into the image, the symlink is copied with the slashes replaced ...
0
votes
0answers
19 views

How to manage volumes correctly with CI/CD workflow with nginx and laravel

Currently in a quandary over the best way to solve this issue. I've currently got jenkins pulling my app down from github repo, then using a workspace container with node, etc etc to build my ...
0
votes
0answers
18 views

How to build asp core 2.2 linux image on Hosted Windows 2019 with VS2019?

I'm currently redefining our build pipeline and build our sources by using the VM image windows-latest which currently resolves to Hosted Windows 2019 with VS2019. After calling publish I get my ...
0
votes
0answers
24 views

Harbor replication to docker.io

How do you configure Harbor to pull images from a 3rd party registry such as docker.io? I've setup a replication rule, and enabled it, but I can't pull any images. It looks more like replication wants ...
0
votes
0answers
56 views

Issues trying to run multiple php-fpm containers for different environments for the same application behind a traefik proxy

I am setting up a live and test environment for a website I am hosting. Currently, I am facing issues and I can't seem to figure out why it is happening. I am using a MySQL, Nginx and PHP-fpm ...
0
votes
1answer
48 views

Docker fails to mount volume inside Jenkins scripted pipeline

I'm working on a CI Jenkins build with scripted pipeline. From Jenkins on one machine, I'm connecting with already configured Jenkins slave on another machine (M2). I'm able to successfully execute ...
0
votes
0answers
24 views

Certbot installation fails inside Docker

What I'm trying to do, to create a Docker container with apt-mirror which also uses Cerbot for Letsencrypt with nginx. There is an image for nginx/certbot but it's based on Alpine Linux (=no ...
0
votes
0answers
15 views

No swap limit support - docker engine

Below command gives a warning of no swap limit support. $ docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 18.09.5 Storage Driver: overlay2 Backing Filesystem: ...
0
votes
0answers
12 views

WebPack 4 command hangs when deploying to GAE (Google App Engine Flexible)

We have a React/Node/WebPack application. We used to deploy it in GAE Flexible for the past 2 years or so. Recently we updated our libraries to React 16, WebPack 4, and Node 10. Since we merged the ...
0
votes
1answer
77 views

Add mapping ip and host into /etc/hosts with docker

I am using docker to scale my service. I know there's a command called --add--host for adding host into /etc/host However, I have a bunch of hosts need to be added. It's just too long to launch a ...