Stack Exchange Network

Stack Exchange network consists of 174 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
7 views

Why am I unable to push docker image in gce (gcr.io)?

I created a new VM instance on my GCE compute engine (I have Owner permissions). On that instance, I installed git, docker, and gcloud - everything is done under sudo su. I was hoping I can use that ...
0
votes
0answers
8 views

Pushing Docker application logs to Logentries

I see here some official docs for how to push a Docker container's logs to logentries. However, it is unclear whether this pushes application logs, or system logs internal to Docker. And if it does ...
0
votes
0answers
15 views

Using Composer when php-fpm and Nginx is in separate Docker containers

I'm setting up a pipeline for CI, and I have read about pros and cons of having php and Nginx in separate containers. Personally I like how tidy and maintainable it is when its separated, combined ...
0
votes
0answers
9 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
2answers
49 views

How can I force Docker Compose to rebuild containers when dockerfile changes?

I am using docker-compose to start 2 containers using the following docker-compose.yaml. version: '2.4' services: myservice1: container_name: mycontainername build: context: . ...
0
votes
1answer
16 views

How does someone share a drive to be available for my containers?

I have been trying to setup my ASP.Net Core project with docker support, but it seems like I am failing to share my C:\ drive? Following that link I have encountered these documentations stating that ...
0
votes
0answers
20 views

Login to docker registry using chef

We want to create a chef recipe which can able to login to docker registry and pull some images. I have tried using docker_registry resource as mentioned here https://github.com/chef-cookbooks/docker#...
1
vote
1answer
23 views

What is the behavior if docker compose fails?

It seems to me that all the containers attempted to be launched are removed if Docker Compose fails for one container being launched. Is this standard behavior, or is this just an artifact of my ...
3
votes
0answers
83 views

SSL error when deploying from gitlab runner (GitLab-CI) to remote docker host

I am trying to deploy an docker image, which is located inside the gitlab.com registry, to an external docker host. The docker host was created using docker-machine. I am using a shared runner and ...
0
votes
0answers
15 views

How do I fix a “heartbeat failure” in Docker Swarm?

My cluster is currently located in a single data center. I've been trying to change that by adding a single worker node from another data center, but so far it hasn't worked. I'm able to make this ...
2
votes
1answer
15 views

How do I prevent service A from being placed in the same node as service B in Docker Swarm?

From the docs, I could only find information about placement restrictions based on node attributes, likes labels and its role. However, I couldn't find how to configure placement based on the services ...
0
votes
1answer
19 views

Preserving ownership of a folder after mounting it

I have dockerized an application which accesses a folder "Folder1" inside the container. The folder is owned by a user "user1". When I bring the container up, I need to mount this folder over my host ...
0
votes
1answer
25 views

Docker for Windows 7 with Visual Studio 2017 Integration

My objective is to have a development environment with docker and Kubernetes integrated with Visual Studio 2017 so that I can run the app on the docker container from directly within Visual Studio. I'...
1
vote
1answer
28 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 ...
3
votes
1answer
48 views

When exactly and what for should VOLUME in a Dockerfile be used?

When writing a Dockerfile, I do have the option of specifying volumes, such as: VOLUME /var/www But even without this declaration I am able to mount volumes to this directory and other places, e.g. ...
1
vote
2answers
47 views

Is there an alternative to the Jenkins dir() to change to a directory on a Docker container?

Here's my current set-up: Jenkins Master running in Docker on an Ubuntu 18.04 host. A Node running Ubuntu 18.04 with Docker installed. Desired job spins up docker containers on the node which build ...
4
votes
2answers
65 views

Docker security risks passing secrets over environment variables

I'm new to Docker and want to put my Django web application into containers. For the last couple days I'm struggling with passing credentials safe to containers. Online there is always the hint ...
6
votes
1answer
72 views

Best way to launch 100 identical Docker machines on AWS?

I need to do some large scale testing on a system. The system consists of 2 main parts: Manager and Nodes. There will be only one manager server, but 100 nodes. Both the manager and nodes are Docker ...
2
votes
2answers
46 views

How the use Docker exec to update code into a running container

I am using docker-compose to manage Docker. Now suppose I want to update a source code in one of the Docker containers. Can I do it using the exec but then how to copy the code from host to running ...
2
votes
0answers
24 views

Should I use systemd or docker-compose to replace Upstart for keeping Docker containers running on my systems?

We are talking about Docker containers as sysdig, consul, fluentd, mesos-slave, etc. that we are running on almost all machines. Currently we are using Ubuntu's Upstart and CoreOS's Fleetctl. We're ...
2
votes
1answer
29 views

Can't install MongoDB docker on raspberry

If I want to execute any docker file from https://hub.docker.com/r/library/mongo/tags/ on my raspberry Pi 3B with raspbian stretch installed I always get the same error namely something like : ...
0
votes
0answers
28 views

Not able to install Docker CE 17.x or 18.x on RHEL Linux

I am trying to install docker latest version using the below curl commands: $ curl -fsSL get.docker.com -o get-docker.sh $ sh get-docker.sh But this script is not working for my RHEL 7.x Error : ...
0
votes
0answers
20 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 ...
1
vote
1answer
28 views

Built codebase doesnt appear after deploying

I'm packaging and shipping a custom code base of Wordpress with a Dockerfile in to my private container registry. Dockerfile: FROM wordpress:latest ADD . /var/www/html Then on the deployment ...
1
vote
2answers
30 views

Automated tag versioning on unchanged docker images

I am starting to use Continuous Integration on my microservices solution (monorepo approach), and I am referencing this post for versioning approach. But, let's say I make some change in one of the ...
2
votes
1answer
30 views

Do not show all docker containers to a particular user

I want to use one server to host multiple docker-containers. I want to give another user a possibility to manage new docker-containers, but I do not want to give him access to all other containers, ...
2
votes
1answer
27 views

Preinstall packages for a nodejs Docker Image according to package.json

I would like to prepare a Docker image for a nodejs project. The developers use package.json to list their node module dependencies. I would like to prepare the Docker image (as base on the Dockerfile)...
2
votes
1answer
45 views

How to assign static ip in docker for Windows for linux container?

I want to assign static ip to my docker container in docker for Window for linux container. I have achieved same in linux container using macvlan but macvlan doesn't support for docker for Windows. ...
1
vote
2answers
37 views

Scheduling a Docker Container or Installing Scheduler in Container

I have an interesting question related to scheduling my Docker Container. I have a virtual machine with a docker image inside of it. I can spin up a container from the image that has an entrypoint (...
0
votes
0answers
37 views

Use Traefik with Jenkins don't work

I'm trying to use Traefik with a Jenkins container, but it does not work. This is my docker-compose.yml: version: '2' services: jenkins: image: bitnami/jenkins:latest # ports: # - '...
2
votes
1answer
41 views

How do you handle the huge number of possible permutations of Dockerfiles / Teraform files?

We have adopted Docker and Terraform as the foundation forour devOps. We have a basic version of it up and running today. Dockerfiles live in each projects git repository and Terraform files are more ...
1
vote
1answer
26 views

Dockerfile COPY command with three input parameters

I've encountered a Multi-stage Build example, where the first stage builds a ngnix server, and the second stage creates a ngnix service from that image. The second stage looks like this: ... # ...
1
vote
1answer
23 views

what environment does a build “RUN” run in?

When docker build does a RUN command, what "environment" is it running in? Explaining the question, does it run at build time, or when the container starts? Is it using the operating system ...
0
votes
0answers
42 views

Best alternative to deploy/update docker using Jenkins for CI/CD

I'm running Jenkins as a docker image, and I'm looking for the optimal way to deploy new (or update existing) docker images (example staging and prod environment). I've founded this example : https://...
18
votes
2answers
2k views

Why use EXPOSE in Dockerfile — since you can bind to all ports anyways

I can docker run -p 3000:3000 image without EXPOSEing that port in the container (see below). If that's true, then why bother putting EXPOSE in the Dockerfile? Is it just for communication to image ...
2
votes
2answers
42 views

Getting data from crashed docker container

I am having docker container with Ubuntu installed which was running with Nvidia docker But now I connected that HDD in a different computer. Now After typing following command in newly assembled ...
3
votes
1answer
140 views

docker compose & azure key vault - passing secrets to a container on startup

I am using docker-compose to create 5 containers that run my application. Two containers need credentials retrieve from Azure Key Vault (web.config passwords to access 3rd party service). As I am ...
2
votes
2answers
37 views

Regarding Use On Docker

I have some questions regarding docker. In docker image template, there is template that define for Ubuntu. 1) May I know is it possible to build and run this Ubuntu docker image on Redhat server? ...
0
votes
0answers
66 views

py2neo AddressError When Connecting to neo4j in Docker

I am having difficulty creating a Graph object on Neo4j 3.4.6 using py2neo 4.10 with Python 3.7.0. I created a Docker container running Neo4j, and I disabled authentication using Dockerfile entry ENV ...
2
votes
1answer
21 views

Docker ADD always invalidates cache

I've got problem with my Dockerfile. After building an image it is pushed to repository as cache-image, so on next builds I can pull it and use with --cache-from. Problem is that build stops using ...
2
votes
1answer
40 views

Persist Changes to New Docker Image - neo4j

I am trying to create a new image based on the neo4j:latest image. What is the proper way to persist to a new image and run a container based on the image? I have these goals: Save the new password ...
0
votes
1answer
19 views

Executing a command in running docker swarm service

I am trying to run a Django project in docker swarm mode. The problem is I want to index the Elastic search container which needs to be run only after postgres completes the SQL dumping process (only ...
0
votes
2answers
55 views

Docker - which cache is used to build image

I have got my docker image called samplecontainer, during build I am not specifying --cache-from option. Is it possible to know which image is used during build as cache?
0
votes
0answers
65 views

ECS task fails to start when deploying Docker multi container App in Elastic beanstalk

I have a beanstalk application environment that use multi container docker instances.I have also pushed an image(simple app running a simple node js) to my ECR repository.But whenever i try to ...
0
votes
0answers
13 views

How to detect exception occured in a Pod in Kubernetes?

I have a multinode kubernetes cluster. Multiple services are deployed as Pods. They communicate over each other via rabbitmq which also exists as Pod in the Cluster. Problem Scenario: Many time ...
1
vote
1answer
30 views

Is it ok to logout after calling docker stack deploy?

If I immediately terminate the process that called docker stack deploy will the docker swarm continue? My use case is this: In my CI job I ssh into my swarm cluster node. I copy the new stack.yml ...
0
votes
0answers
36 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 ...
0
votes
0answers
18 views

How to do Rancher 2.0 Node Scheduling Priority Settings?

Does anyone have experience with Rancher 2.0 priority scheduling? I would like to make sure certain containers are running over others. If I add scheduler, priority and priority class name, nothing ...
2
votes
1answer
28 views

why can't map local path to docker's inside?

I want to build private docker hub. and I did it with: docker run -it --restart=always -p 7901:5000 -v /data/registry:/tmp/registry registry /bash/bin And my disk informations as below: [root@10-...
1
vote
1answer
115 views

Docker exec environment different to container shell

I have a docker image that looks something like this: FROM ubuntu:16.04 # Install packages for building ruby RUN apt-get update && \ apt-get -y install build-essential git curl wget net-...