Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [docker]

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

0
votes
0answers
4 views

Google Container Registry giving 'Access Denied' when trying to push Docker container

So I'm trying to push my docker image to gcr.io/docker-url, but it's not working. I've tried the documentation that Google has, but that's still failed (https://cloud.google.com/container-registry/...
0
votes
0answers
11 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
1answer
22 views

Why Docker cant launch container?

I have docker-compose file with one image (httpd) and one volume that look into ./ folder (It contains only one index.html static file). When I start my computer I launch this image with docker-...
1
vote
1answer
26 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 ...
0
votes
2answers
38 views

Why is docker container recreated

I'm testing Wordpress docker on an Amazon EC2 machine. yesterday, all file based changes (like plugins, themes, etc) were gone. The Ec2 machine is up for 8 days, other containers are also up for 8 ...
0
votes
1answer
14 views

Running Protractor tests in docker through teamcity

I have a project for which I am using Teamcity to automate deployment, and I would also like to automate testing. It is an angular frontend, and we have some protractor tests. I would like to run ...
3
votes
1answer
39 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

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
1answer
19 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 ...
0
votes
1answer
14 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
0answers
12 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
1answer
14 views

Using the builded binary of a docker image in another docker image

Problem I have two repositories A and B. I have a docker image registry, where I can push the docker images made of the repositories A and B. I need only the binary of A's source code to be included ...
0
votes
0answers
12 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
0answers
21 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
13 views

Store Docker memory?

Docker daemon allows, use memory storage driver according to image documentation. I want to learn the experience of people who are using Docker daemon for daily business?
3
votes
1answer
32 views

Building a CI/CD pipeline on GCP

I have a containerized web application on GitHub and I would like to build a CI/CD pipeline on GCP consisting of a trigger stage, a build stage and a deployment stage and be able to do continuous ...
0
votes
3answers
78 views

How to get exposed ports from inside of container?

I want to know which port(s) are exposed when user run the image. docker run -p 1000:1234 myimagename I want to get 1234 value in container since I will use it for some configurations(IIS bindings ...
1
vote
1answer
29 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 ...
0
votes
1answer
59 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, ...
1
vote
1answer
46 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
16 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
0answers
15 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
9 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: ...
1
vote
0answers
11 views

Mounting ssh keys on ephemeral container from a Windows host

I'm working on a container that uses Git to interact with some git repositories. But, to use Git it has to use the SSH keys that are stored on the Windows host machine. I tried two of the ways I could ...
0
votes
0answers
6 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
173 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
49 views

Failed to start Container after reboot

I am hosting an own registry. After rebooting the Server my registry container is unable to start. I used this command to start the registry docker run -d -p 5000:5000 --name registry -v /var/lib/...
3
votes
1answer
430 views

How to bind ports for docker container in bitbucket pipelines?

I'd like to test an application using bitbucket pipelines with a custom docker image running some services. I have a dev docker image which runs all the services I need in order for tests to pass. ...
19
votes
6answers
762 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 ...
1
vote
2answers
82 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 ...
2
votes
2answers
54 views

Installing azcopy in Gitlab Runner (Alpine Linux)

How can I install azcopy and use it in my gitlab runner CI/CD script? First I have two scripts that download the tar file and extract it. wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-...
-2
votes
0answers
34 views

Can someone ELI5 what Docker is and why it's used

Posted byu/pouyank just now Starting robotics research with a Docker; could use some help getting context. So I've gotten robotics research in school (currently an undergrad) and I've been thrown into ...
1
vote
1answer
45 views

Docker: subnet clients can't ping other subnet

Two containers are created with this Dockerfile: FROM ubuntu:18.04 RUN apt update && apt upgrade -y && apt install -y vim iputils-ping net-tools tcpdump iproute* iptables traceroute ...
2
votes
1answer
23 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
27 views

LAMP in docker must be multiple containers or one?

I newbie in docker and I cant find answer what solution is more "right" for LAMP stack: 1) One "standalone" container that will consist from Apache, PHP, MySQL, etc 2) Special container for each ...
2
votes
1answer
28 views

Make container start if docker daemon or host system is restarted

First off, I am new to Docker. I was able to create a container based off an image I had previously pulled, start it, but the container is stopped if the docker daemon or the host system are restarted....
0
votes
1answer
9 views

How to perform low-level inspecting of a Docker network traffic?

I'm currently in a scenario that requires Docker container C to be able to intercept communication between docker containers A and B, without their knowledge. I am basically attempting to do a ...
0
votes
1answer
43 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 ...
0
votes
2answers
35 views

Host a docker registry native

I want to host my own docker-registry server to be independent from docker-hub. I want to run it native on my server, but I can only find documentations, which are using running it inside a container. ...
0
votes
0answers
23 views

Increase Kubernetes Nginx Ingress limits for large images in Docker registry

When pushing images to a self hosted Docker registry installed using their official helm chart, this works for some images. But for one image, I'm not able to push two layers. Docker retry it several ...
1
vote
2answers
456 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 ...
0
votes
1answer
18 views

Unable to create container after installing mysql and phpmyadmin | Ubuntu

I have installed docker successfully and try to install phpmyadmin and mysql. I have did following steps. Using below link I have pulled php version https://hub.docker.com/r/codepulse/php-7.2.0-...
-1
votes
0answers
16 views

From container to tunnel from host OS

I am trying to use a tunnel to a remote server from my Host OS (Port 3333 on host OS to port 3306 remote server), and accessing this tunnel from a docker container (Devilbox php container). Looking ...
0
votes
1answer
31 views

How to run/deploy devilbox (Docker image) docker-compose on GCP without a Dockerfile?

Devilbox comes with a docker-compose file to run a docker container: https://github.com/cytopia/devilbox However, on the GCP Kubernetes Engine it is only possible to start up a new container via a ...
1
vote
0answers
24 views

Docker-compose for tomcat, nginx and node webapp does not connect to backend

I have made a docker-compose.yml file where I use 4 images to create a tomcat backend with postgress database and a frontend website using nginx. The backend exposes a rest-api that the frontend uses ...
0
votes
0answers
14 views

Install and configure libreoffice online docker image on ubuntu 16

I have downloaded libre office online docker image from docker hub and type the necessary commands to run it.If I type docker ps I can see container is there.But I want to know how I can get the libre ...
0
votes
0answers
20 views

How do i configure my docker services to communicate with one another in a swarm?

I'm trying to fix service-2-service dns inside my swarm. I'm instantiating 3 docker swarm services using the docker remote api. They startup fine, and i can access their content from inside the ...
0
votes
0answers
91 views

How to intercept and redirect network communication inside docker containers?

I am fairly new to Docker-compose and have been tinkering around a bit. in the process, i came across a requirement where i need to close down external internet traffic, and redirect requests to ...
0
votes
0answers
10 views

Why can I connect to my docker socket.io server with http but not directly to the socket?

I am following this tutorial on creating a docker/socket.io/aws app. Following the tutorial completely, the app works. However, if I try to access the socket from outside the self hosted client I can ...
0
votes
0answers
25 views

Restart service in a docker container

I'm building a docker container with a service X. I would like to restart service X programmatically from other micro-service in other container. At the moment, we developed a small Flask app that is ...