Questions tagged [docker]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
121 views

GitLab keeps loading and finally fails when deploying a dockerized node.js app

GitLab Job Log [0KRunning with gitlab-runner 13.2.0-rc2 (45f2b4ec) [0;m[0K on docker-auto-scale fa6cab46 [0;msection_start:1595233272:prepare_executor [0K[0K[36;1mPreparing the "docker+machine&...
1
vote
1answer
60 views

Sending HTTP requests to private EC2 DNS from other EC2 host works, but not from container on EC2 host

I want to make a container hosted on one EC2 host communicate with another container hosted on another EC2 host. Currently, if I send an HTTP request from host A to host B using host B's private DNS ...
0
votes
2answers
963 views

Jenkins - docker login doesn't seem to persist: docker pull won't work but docker-compose can pull without problems

I am setting up a new Jenkins as our old one is based on a deprecated base image. Dockerfile is: FROM jenkins/jenkins:lts-centos7 USER root RUN yum -y install docker \ && yum clean all ...
3
votes
3answers
495 views

Accessing a AWS docker instance via localhost only?

Suppose I have two apps launched via the AWS ECS cluster (using Docker containers). I want to expose one app to the world via a public IP (and I do it via the AWS load balancer) but the other one I ...
0
votes
1answer
307 views

Gitlab CI push to docker-registry fails

I have GitLab server and a separate docker-registry. I have created a testuser with a testpassword. My .gitlab-ci.yml image: docker:latest services: - docker:18.09.7-dind variables: ...
4
votes
1answer
133 views

How not expose my backend

I'm studying Docker and how to properly publish my containers coding a very simple web application. It has only two containers, backend and frontend. I've published the source code here: https://...
1
vote
1answer
38 views

What do I need to do as to prevent docker from downloading when I `run`?

If I don’t want anything to download when I run docker run -ti --rm \ -v /home/sable/heudiconvTest/BIDS:ro \ -v /home/sable/heudiconvTest/qsipOutput:/out \ pennbbl/...
1
vote
1answer
34 views

How to create a second IP just for dockers

Problem: my server is already using port 80 and I would like launch another service that uses port 80 on another address (I don't want to remember ports or force my wife to use non-default ports). I'...
0
votes
1answer
48 views

How does Kubernetes terminate an instance after helm upgrade

I have a node.js application that is running on a Kubernetes cluster, I am using helm to manage it currently. I have ran into a bit of an issue, when the application starts it connects to a service ...
2
votes
1answer
1k views

Can I use AWS Step Functions to launch many different fargate 'runs'?

I am building a service that has two independent steps. The first step is a data transformation step that has to happen and is common to all downstream processes, then the second is starting a few ...
1
vote
3answers
754 views

Trick a docker containers DNS to resolve a different url

I am not sure I know the terminology to describe this correctly, my apologies. But for a contrived example. Say I have a docker container that runs code that accesses "google.com". But I want all ...
3
votes
0answers
589 views

Remote connection from Docker container by FTP

I built my docker image and run it: docker run --rm -P -d test:latest Then I entered the command and opened connection: ftp open XXX I successfully connected and entered user data. After that I ...
2
votes
1answer
65 views

Docker calls to detect app crashing inside it

Is there a way to know if an app has crashed inside docker using maybe bash script or API call from host container, am implementing CI/CD using Jenkins and will be deploying the built app via ssh to ...
1
vote
1answer
40 views

Should I clean up my local machine before installing Docker?

This is a basic question for which I didn’t see anything on in the docs or forum searches. I have a development machine which has all kinds of stuff installed to do machine learning, like anaconda, ...
1
vote
1answer
67 views

How do I setup ssh from jenkinsci/blueocean docker to remote?

I am running jenkinsci/blueocean docker locally as per the instructions of running jenkins using a docker on jenkins.io. Everything seems to be working correctly but when I docker exec into the docker,...
2
votes
1answer
146 views

Jenkins Docker Behind Reverse Proxy Adds ":80" to the URL

The Jenkins container redirects to URL:80, which is causing an error. When I remove the :80, everything is working as it should. I have tried the proxy with a simple web app and there were no issues. ...
3
votes
0answers
25 views

How can I allow admins to run Django Admin CLI commands against a Django application deployed live as part of a Docker Swarm cluster?

Specifically, I want them to run the following: https://django-q.readthedocs.io/en/latest/monitor.html I am looking to write a minimal wrapper-script which would simply allow them to run a single ...
2
votes
1answer
107 views

Pattern(s) to scale node.js based ETL

I have a node.js ETL application that transforms data from 1..n locations and from each location there will be 0..m transactions. The application is started via cron on a configurable interval, ...
3
votes
1answer
86 views

Porting a docker container to a different Linux host OS

I'm new to Docker. I have looked at many tutorials, however, this is still not clear to me : For example, If I create a docker image on a system which is using Ubuntu as the host OS. Can I then later ...
4
votes
1answer
61 views

How can I unify my distributed build environments using Jenkins and Docker?

I have recently taken over the CI management for a medium-sized team of developers. Currently, we have one Jenkins server instance as well as six other instances of Jenkins agents to build upon. We ...
2
votes
1answer
369 views

Docker convenience script stuck after "Scanning linux images"

I have a Raspberry Pi 2B and a fresh install of Raspbian. I am trying to install Docker, and following the instructions on the site (https://docs.docker.com/engine/install/debian/#install-using-the-...
2
votes
1answer
55 views

Create pull request for docker dependency package if outdated

Platform: GitHub CI/CD: GitHub Actions Additional technologies: Docker with Ubuntu base image I'm creating a Dockerfile and I need to install a package (such as Terraform). Every time the '...
1
vote
1answer
377 views

Failure to build with docker-compose: Invalid signal: SIGQUIT

PS D:\>docker-compose up Building app Step 1/7 : FROM php:7.4-fpm-alpine —> 5ae58b49885c Step 2/7 : RUN apk add --no-cache autoconf curl dpkg-dev dpkg freetype-dev file g++ gcc giticu-dev jpeg-...
6
votes
2answers
3k views

Stress testing for docker container

I want my container to die under high pressure to check monitoring and alerting as well as compose autorestarts. What is best way to simulate heavy load within docker container. I've tried so far ...
5
votes
1answer
85 views

Can I remove a docker image and still keep the container?

Trying to save space on the server, and I've noticed that the running containers are much smaller in size than the images I've had to pull to create the containers. I was wondering about the ...
3
votes
1answer
4k views

how to run Docker/Jenkins behind a proxy

For the past few days I’ve been scratching my head trying to get the Jenkins docker image to work The issue appears to be a proxy issue. OS: Ubuntu 16.04 LTS Running behind work proxy ...
0
votes
1answer
24 views

Strange behaviour with docker-py

Consider the following setup. Precondition: have a healthy image i.e. service starts up. E.g. docker run -d IMAGE Then, with the Python plugin docker-py, consider the following code which should ...
1
vote
1answer
34 views

Default StorageClass set up for Docker EE Kubernetes

We're using Docker EE Kubernetes on-prem set up and noticed that cluster(s) don't have default StorageClass set up. To the best of my knowledge this is supposed to be set up during install/set up, but ...
2
votes
1answer
25 views

How can I load multiple paths into the workspace during docker run?

My datasets and codes are in different folders and they don't have immediate parent folder. I want my codes to access my datasets while using docker run. Is there a way to load both codes and ...
3
votes
1answer
38 views

Using DevOps pipelines to create distribution bundles of applications

We want to create bundles of our applications in order to distribute to clients etc. An application can have more than one component. Ex: an application can have a spring server and a scheduler so in ...
1
vote
1answer
2k views

Accessing remote servers through a VPN tunnel from within docker container

My laptop has an IPsec VPN tunnel set up to access a remote site (with my side being the VPN client). As an experiment, I started up a simple docker container on my laptop using docker run --rm -it ...
10
votes
2answers
3k views

Healthcheck: CMD vs CMD-SHELL

It's not clear to me what are the differences between CMD and CMD-SHELL in Docker Compose healthcheck. What are the benefits of using CMD-SHELL compared to CMD? What are the use cases for CMD and CMD-...
1
vote
0answers
43 views

secret id in docker terraform file

what value secret_id variable is referring in below main.tf and terraform.tfstate code There is no variable called "id" in my secrets.tf file main.tf resource "docker_service" "mysql-service" {...
1
vote
3answers
718 views

Terraform syntax error after V0.12 upgrade

I have just upgraded from terraform v0.11 to v0.12 But i am facing lot of error complete code @ https://github.com/sivatest82/Terraform1/tree/master/secretsv12 especially in the block secrets = [ ...
1
vote
1answer
171 views

Grant access permission to file when mounting from host

Below is except of my docker-compose.yml file I am trying to mount from host file inside the container, which works i.e. able to mount but then I need to give it permission (my clumsy chown command, ...
2
votes
2answers
2k views

Restart docker container from another container

I'm in a planning phase for a little tool for myself. I have to say that I have close to 0 experience with docker. My setup 1 x Nodejs App in a Container (lets call it App) n x Instances/Containers ...
2
votes
1answer
52 views

Question on NGINX reverse proxy when there are services on the host and on containers

I have the following architecture, which consists of an nginx server on the host machine, and 3 urls, app1.com, app2.com, app3.com: app1 and app2 are both in the host machine, lets say they are an ...
2
votes
1answer
44 views

How to locally resolve host name starting with variable slug?

An app, running on my laptop in development mode, comprises several Docker containers, one of which runs a Django web app. This web app expects to receive HTTP requests using a hostname with a ...
2
votes
1answer
252 views

Referencing locally built Docker images in Terraform

Is it possible to use docker images in Terraform that are not hosted in a registry but in the local Docker storage? I'd like to have a resource like the following where no pull is performed on the ...
2
votes
2answers
2k views

docker-compose multiple services in a loop

Trying to optimize definition of multiple services with docker-compose.yml Here is the original, "dumb" variant of the docker-compose.yml: version: '3' services: s1: build: . ports: - "...
1
vote
1answer
28 views

creating private registry, id and password with -Bbn option

Any one knows what does Bbn stands for in the below command I am aware that,If the bbn option is not provided its not possible to write in the htpasswd file,but what is the meaning of it docker run -...
2
votes
1answer
62 views

How can I monitor docker volume usage?

I'm planning to automate docker activities using python. However, I couldn't find any efficient command for monitoring docker volume. So now I wish to use shell commands for that and later it can be ...
4
votes
1answer
14k views

Permission denied within mounted volume inside Docker/Podman container

I am starting to learn about containers using podman that came with RHEL8.1 (which AFAIK can be used in place of docker), and have the following baby Dockerfile as a learning exercise: # Use Alpine ...
1
vote
1answer
23 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
43 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
295 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
73 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 ...
3
votes
2answers
2k 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-...
1
vote
1answer
59 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",...
2
votes
1answer
1k 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
4 5
6
7 8
20