Questions tagged [docker]

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

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

Tool or way to support handling dependencies of modules in various platforms (for machine learning in Python)

I am Data Scientist and I have a problem with setting of versions modules like Keras, Tensorflow PyTorch, etc. Although I am using tools like virtuaenv or conda, my code isn't cross-platform, version ...
1
vote
1answer
12 views

Which cloud region could have the fastest time for a docker image push?

TLDR How to know what region in the cloud nearest to docker hub? Full details From my localhost my network is super slow to push the docker image onto docker hub. My workaround is to use a cloud ...
0
votes
1answer
4 views

Blacklist network ranges Docker is allowed to use for its containers (swarm mode)

Basically I need to blacklist an IP range (and maybe multiple ranges) so that Docker can use any other IPs for its containers BUT IPs in this range. Assume I have my docker nodes in a swarm of n ...
2
votes
1answer
25 views

On Premise CI / CD recommendations for Docker images

We have TFS building Docker images, and loading them into a Private Registry on one network, our Development Network. Everything works well, and we are generally happy with the CI process in that ...
0
votes
1answer
39 views

Build Docker images with DinD and BuildKit

I use GitLab's pipelines to describe the deployment process. And, as part of it, I build Docker images. For that purpose, I use Docker-in-Docker to build those images (i.e. download the Docker-in-...
0
votes
1answer
8 views

Why does running echo with exec form in a Dockerfile create /etc/resolv.conf?

I was trying to build a Docker image from a Dockerfile and I had a line in there which reads: RUN ["echo", "'anything'", ">", "./a_file"] This didn't work, and I eventually had to use: RUN ["sh",...
1
vote
0answers
23 views

Can't install Docker Engine On Windows Server 2019 in an Air Gapped network

The organization I work for has a tightly air-gapped network. I need to be able to run my applications in docker containers, so I need to install Docker Engine on Windows Server 2019. I have followed ...
1
vote
0answers
9 views

How to automatically update Swarm services when the Docker daemon restarts

I'm using Docker Swarm, and I have condition: always in the restart_policy of my compose file, so my services are started automatically when the system reboots or the Docker daemon is restarted. What ...
1
vote
3answers
28 views

Can I run a Ubuntu 16 Docker image on a Ubuntu 18 host? Will I need to install hardware drivers already available to the host?

We have some Docker images built from Ubuntu 16.04 base image, and we've been running them on hosts running Ubuntu 16.04; these hosts are laptop computers from different makes. However, we have had ...
1
vote
0answers
7 views

How to enable anonymous authentication for kube-apiserver using kops on AWS C2?

I want to enable anonymous authentication using kops, but it's default settings provides the --anonymous-auth=false options to kube-apiserver: /usr/local/bin/kube-apiserver --allow-privileged=true --...
0
votes
1answer
22 views

Upload data into docker container from docker volume

I wish to create a volume and mount it to a docker container in order to collect some artifacts, and I want to reuse these artifacts into another docker container later on. Can i just mount the same ...
1
vote
1answer
23 views

How to deploy a Kubernetes service using NodePort on AWS?

I have created a cluster on AWS EC2 using kops consisting of a master node and two worker nodes, all with public IPv4 assigned. Now, I want to create a deployment with a service using NodePort to ...
0
votes
0answers
15 views

Where in the Kubernetes cluster is /var/run/docker.sock mounted?

I want to create a CTF exercise for my colleagues to learn and play with Kubernetes security. To this end, I would want them to execute a command, like the following, to access a Kubernetes pod with /...
0
votes
0answers
22 views

How to simulate a WLAN in Docker?

my master thesis consists in developing application level broadcast and routing primitives for wireless ad hoc networks, formed by commodity devices (raspeberry pis 3). However, due to the current ...
1
vote
1answer
30 views

Can't write to Docker volume

My set-up I have a Docker image based on php:7.4-apache. I have two Docker volumes for saving files that need to be persisted. On container start, I run Certbot to install HTTPs certificates. Issue ...
1
vote
1answer
30 views

Multiple apps (microservices) and one proxy (nginx) docker-compose configuration/architecture

Having the following architecture: Microservice 1 + DB (microservice1/docker-compose.yml) Microservice 2 + DB (microservice2/docker-compose.yml) Proxy (proxy/docker-compose.yml) Which of the ...
1
vote
0answers
18 views

How to get parent Docker container ID in docker-in-docker-context?

While running a Docker container inside another Docker container, how to get parent container's ID?
1
vote
1answer
37 views

Workflow with docker in the development environment

I have a couple of questions related to the usage of Docker in a development environment. I am going to propose three different scenarios of how I think Docker could be used in a development ...
0
votes
1answer
22 views

error while loading shared libraries: libtinfo.so.6 : two behaviors for same docker image

I am developing an Erlang-OTP application, for that I use a docker image. docker-compose.yml: FROM centos LABEL Name=myimage Version=2.0.0 RUN set -e \ && yum -y install \ autoconf ...
0
votes
0answers
17 views

Docker image with mercurial-server service in Bitbucket Pipelines can't connect to another container

I have this bitbucket-pipelines.yml with this description: image: python:3.7.2 pipelines: default: - step: script: - pip install -U tox - tox -r services: ...
1
vote
1answer
30 views

Problem on gitlab-runner: cannot lock ref […] Another git process seems to be running in this repository

I got a problem on a gitlab-runner after pushing several commits: Running with gitlab-runner 11.4.0 (8af42251) on GITLAB-RUNNER 58c31dfa Using Docker executor with image registry.git.rwth-aachen....
4
votes
1answer
35 views

Condition to skip a test when running in a container

I'm writing an Inspec profile which has a specific control that I want to skip if the control is running inside a docker container. This looks like: control 'ssh daemon' do impact 'critical' ...
0
votes
0answers
15 views

Pipeline for deploying WordPress instance with a custom plugin from Github actions

I'm not a dev ops expert so I mat mixing up some basic terms. I want to setup a pipeline that on creation of a pull request in GitHub on my WordPress plugin repo, GitHub action will create a ...
0
votes
0answers
11 views

FTP Active out of docker container

Trying to initiate an FTP active connection from inside an Ubuntu-based Docker container (residing on a CentOS host) to the outside world. However, FTP server complains: 501 IP Address for data ...
0
votes
0answers
23 views

Add persistent volume with gitlab autodeploy

I deploy a docker image on kubernetes with gitlab auto deploy. I need to add a persistent volume, do you have an example? I don't understand how to overload the helm chart.
0
votes
0answers
20 views

How to run an installer from a Windows share in a Windows container?

I am tasked with creating a Docker image of Microsoft SQL Server 2012 using Docker Desktop. I am running Windows 10 Enterprise Version 1809 OS Build 17763.1039 and Docker Desktop Community Version 2.2....
0
votes
0answers
54 views

How to run Gunicorn in *distroless* docker container?

I'm trying to make a multi-stage Docker build, and put Gunicorn in the final distroless image, but I can't actually run Gunicorn. It works when I use other images, but not when using distroless. For ...
4
votes
1answer
74 views

Should I chunk my docker images in many small layers instead of one large?

When I build docker image for existing applications I try to use as few layers as possible and clean up any unwanted files. For example building an image for moodle: # Dockerfile for moodle instance. ...
0
votes
0answers
13 views

iptables doesn't restrict ports in DOCKER-USER chain

We are using a Docker container and it's exposing a port on the host machine. We want to restrict access to this container port for all IPs except some trusted ones. For the first step and ...
0
votes
0answers
18 views

Deployment of multiple docker containers (microservices) on Heroku

I am working in a project with a microservices setting. I have a docker container for each service (3 services) and another container for the API Gateway for the system. I am using a docker compose ...
0
votes
1answer
30 views

Does Docker images works without client application

I recently installed Docker in Ubuntu 18.04 and with that, I have downloaded the mariadb image like this docker run --name mariadb \ -p 3306:3306 \ -v /opt/mariadb_data:/var/lib/mysql \ -e ...
0
votes
1answer
34 views

What is the difference between a jail environment in linux and docker container?

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
0
votes
0answers
28 views

E: Package 'build-essential' has no installation candidate

I have a Dockerfile with the following RUN: # Install dependencies. RUN apt-get update -qq && \ apt-get install -y --no-install-recommends build-essential && \ rm -rf /var/lib/apt/...
1
vote
1answer
18 views

Auto-managed docker-compose volume not shared among containers

I have a bit of hard time understanding the way docker-compose handles auto-managed volumes. Here is an example docker-compose.yml version: '3.7' services: one: image: alpine command: sh -c ...
1
vote
1answer
15 views

Jenkins file that uses docker-compose gives ambigous error

I'm new to Jenkins and I want to automatize my current workflow a little bit. Right now I push it to the raspberry. Then via SSH I pull the changes, run docker-compose build and docker-compose up ...
1
vote
1answer
34 views

Do I need header files once I install the php extention on Dockerfile?

Usually when I build docker images for php I use this approach: FROM php:7.2-apache RUN apt-get update && \ apt-get install -y libghc-postgresql-simple-dev &&\ docker-php-...
0
votes
1answer
38 views

mariadb docker on raspberry

I've tried countless docker images, but all of them have the same behaviour. When I open up a console and try to import my database structure via the mysql/mariadb command. But I always get the same ...
0
votes
0answers
11 views

Interconnect react and node container

I have a react-frontend and a REST-api, acting as database-gateway. During developement it was easy for me to connect these simply by putting "proxy":"restapi.url" into my package.json file. Then all ...
0
votes
1answer
32 views

Let docker containers work with each other

I’m new to docker and I want to dockerize a aleardy existing application. It consists of a react application (I already created a container for that one successfully), a REST-api based on node-...
0
votes
1answer
22 views

create entry-point script to get all env variables starting with VUE_APP_ and take it's value

I would like to Dockerize my existing vuejs app for staging , production and I used multi staged approach to create my app container and I'm using Ubuntu 18.04 and this is my, Dockerfile # build ...
1
vote
0answers
17 views

Connection refused when CURLing to docker container from within Jenkins pipeline

I have a situation with a CI Pipeline I'm trying to implement using Jenkins and Docker . Inside my pipeline I want to: download a python uwsgi web app, build it in a docker container, run it, then ...
0
votes
0answers
21 views

tomav/docker-mailserver doesn't work with postgres-container in project

I have several services in my docker-compose project. It works just fine, until I tried to add a mailserver-container. Then the project couldn't be brought up. To be honest, I need to addmit I'm ...
0
votes
0answers
11 views

Can’t connect interactively to Docker container in Azure VM

I’m trying to debug a Docker build in an Azure VM and finding it difficult to connect to the container using -it for interaction when using Microsoft Remote Desktop. When I try to connect to the ...
3
votes
1answer
41 views

Dockerizing a tool to test web apps?

I'm new to docker/Jenkins and would like a hand understanding something I'd like to practice. I'm trying to set up a tool (like owasp-zap) and using it to run against a container built of an ...
1
vote
0answers
50 views

Traefik on K3s not listening on port 80

When installing K3s out of the box, the Traefik LoadBalancer does not seem to be listening on port 80. When I examine what ports are in use it seems like port 80 and 443 are free even though the k3s ...
0
votes
1answer
35 views

Using a ubuntu base image vs an application specific image (node, python, etc)

What are the benefits of using an application specific Docker image vs a generic OS? I'll use an angular app here as a contextual example, but this should apply to other apps as well. Example 1 | Use ...
0
votes
0answers
40 views

How to manage a fixed infrastructure?

I work for a company that serve software for gas stations, our job is to provide a software that manage all functionalities, including financial, vendors, attendants, prices, etc. For this we use ...
1
vote
4answers
85 views

Why will my container run in Docker, but will not run in Kubernetes?

Background I have a container that I have defined with an CMD and an ENTRYPOINT in Docker. When I run the following command my container runs with no issues whatsoever. docker run --rm -ti custom-...
0
votes
0answers
12 views

Network separation for docker and virtualbox?

I want to know how I can configure the network settings, for the following scenarios. 1) I have two VM Images (Lets call them VM A and B). VM A should be reachable from everywhere (Basically the Host ...
1
vote
2answers
49 views

Can an in-memory filesystem be created from inside a docker container with no special permissions?

I'd like to create an in-memory filesystem within a docker container running on a cluster where I can't assign the container any special permissions (e.g. the container can't have CAP_SYS_ADMIN ...

1
2 3 4 5
15