Questions tagged [docker]

Docker provides a high-level API to containerize processes and applications with some degree of isolation and repeatability across servers. Docker supports both Linux and Windows containers running on x86/64, ARM and other architectures.

0
votes
0answers
3 views

How to pass container link to child container?

I run postgres container: docker run --name db -p 5432:5432 postgres Then I run some container A with link to postgres container: docker run --name A --link=db:db [other params] Now I am inside ...
0
votes
0answers
12 views

Dockerfile copy file instruction not working

I am trying to build a docker image. It was working but today it stopped working for some unknown reason. I get the following message: COPY failed: stat /var/lib/docker/tmp/docker-builder785027150/...
0
votes
0answers
10 views

Do we have to always leave out unused memory in the Docker Host?

When setting up docker containers on a host, we usually leave some memory. In our specific use case, we leave around 400 MB untouched in our ECS EC2 instances. Our thinking was: maybe the native ...
0
votes
1answer
10 views

How to change file path for package.json in Docker?

I'm setting up docker on a personal project and I'm running into a path error. Here is my Dockerfile: FROM node:latest WORKDIR /Users/Alex/funky-ducks/mediumrare/mediumrare COPY ./ ./ RUN npm ...
0
votes
0answers
7 views

Migrate mongodb from docker to kubernetes

At the moment I have a mongo cluster with two slaves and a master runing on docker host1:27017, host2:27018, host3:27018 the current version is 3.4.1 My idea was to add one replicaset into my k8s ...
0
votes
0answers
25 views

How to make a Docker container's service accessible via the container's IP address?

I'm a bit confused. Trying to run both a HTTP server listening on port 8080 and a SSH server listening on port 22 inside a Docker container I managed to accomplish the latter but strangely not the ...
0
votes
0answers
13 views

Run command while simulating OS

I'm making an Electron app that I need to be cross-platform. It requires gRPC to run. Except, to get the gRPC for the OS, as far as I know, I need to run the NPM command from that OS. I.e. Since I'm ...
0
votes
0answers
5 views

Not able to run kurento-media-server as a docker service. Stuck in restart loop

I am trying to deploy kurento-media-server as a docker service. My docker-compose.yml is: version: '3.2' services: kms: image: 'kurento/kurento-media-server:latest' I am able to run KMS server ...
0
votes
0answers
4 views

Inspect open “structured-stack” file

I'm trying to debug my code (docker+node) with VSCode, and when I attach to the debugger always an unknown file is opened with the name "structured-stack" instead of the file with the breakpoint. ...
0
votes
0answers
8 views

How to include Oracle Instant Client in airflow docker containers?

I am using puckel's airflow docker images to run an airflow app that is going to extract data from an Oracle database and pass it to another database. I have provided environment variables for the ...
0
votes
1answer
8 views

How to get the authorization working on an HTTP API request (v2) to Dockerhub

I'm not sure if I'm doing this right. I'm using this code to get a list of tags for a public image: export TOKEN=$(curl -S https://auth.docker.io/token\?service\=registry.docker.io\&scope\=...
0
votes
0answers
7 views

Docker pull from Nexus proxy Error response from daemon : unknown: unknown

After configuring a Nexus docker registry and proxy "dockerhub-proxy" like described here : https://help.sonatype.com/repomanager3/formats/docker-registry/proxy-repository-for-docker?_ga=2.92128602....
0
votes
1answer
17 views

Copy file to host before container stops running

I'm running a Flask app in a docker container, linking it with a postgres container, and testing using pytest. If I run the command docker run -it --env-file=.env --link postgres-test app pytest --...
0
votes
0answers
10 views

Spotify docker client: How to achieve --network=host functionality?

To use host network in a container one can execute docker run --network=host image. How can I achieve it using this API?
0
votes
2answers
19 views

Cannot start node missing module

I am new to node so using this as a starting point. https://github.com/voduytuan/docker-socketio APP.JS var http = require('http'); var socketio = require('socket.io'); var app = http.createServer(...
0
votes
1answer
12 views

Rails doesn't load assets properly in production environment

I'm trying to deploy my application to a Digital Ocean Docker droplet. In development environment, all styles load correctly, but when i upload to production not. See the screen below I'm using: ...
0
votes
1answer
16 views

How does kubernetes work from within a docker container

How does a Kubernetes run (kubectl get no) from within a docker container? I know that it has to talk with the API server, but nowhere can I find a config file containing details of this (like .kube/...
0
votes
0answers
7 views

VSCode: Display forwarding from docker container in Remote Development Extension

How to set up remote display forwarding from Docker container using the new Remote Development extension? Currently, my .devcontainer contains: devcontainer.json { "name": "kinetic_v5", "...
0
votes
0answers
9 views

docker api - How to tell when all containers in a docker-compose file have started

Is there a way via docker api to tell when all containers specified in docker-compose have started up? Right now I have a docker-compose file with a dynamic amount of services. In my python ...
1
vote
1answer
7 views

Cannot bring down hyperledger-fabric started sample networks - permission denied

I followed instructions, given in: edx.courses (LinuxFoundationX: LFS171x Blockchain for Business - An Introduction to Hyperledger Technologies), which is similar to to official guide of hlf (https://...
0
votes
0answers
8 views

Supply argument in docker-compose file for an existing Docker Image

I am running an ftp server using an existing docker image 'stilliard/pure-ftpd:hardened'. When I run this image in non-interactive mode with following command, it stops the container as the container ...
0
votes
0answers
12 views

DB2+MQ+docker; enable_MQFunctions - Error while connecting to database

I build docker's image containing IBM MQ 8.0, DB2express-c 9.7, IBM IIB(not using) + ubuntu 16.04 64bit. I want to enable MQ functions(sending msg to queue) on my Db2 database. After i use command ...
0
votes
1answer
15 views

My PostgreSQL Docker image stops to run afer add a CMD

I have an image based on mdillon/postgis to serve a PostgreSQL server. Just added some code into my Dockerfile to add java OpenJDK from official OpenJDK Dockerfile for same distro ( merge FROM ...
0
votes
1answer
30 views

Why NPM is working locally but not on Docker?

I'm on Windows 10 I'm on a new project and I can't use npm install and npm audit fix on docker-compose up -d, so it's stuck on the first npm install NPM is working locally with my configured proxy : ...
0
votes
1answer
16 views

Copy files from local directory to docker container on a remote host

I want to create a watcher that will automatically sync file changes from a local directory to a remote docker container. I need to find a way to transfer the files efficiently. I will also need it ...
0
votes
0answers
18 views

How to Install WordPress with no human interaction during installation process?

I am deploying WordPress and its database through docker-compose.yml, each one in its container. Such deploy has to be done with no human interaction, during installation process. This implies on the ...
0
votes
1answer
12 views

What is the Impact of having more replicas in Docker Swarm mode?

I understand the use of replicas in Docker Swarm mode. It is mainly to eliminate points of failure and reduce the amount of downtime. It is well explained in this post. Since having more replicas is ...
2
votes
2answers
19 views

Restart a docker container from another running container

I am using docker-compose for deployment. I want to restart my "centos-1" container from "centos-2" container. Both containers are running on the same host. Please suggest, How could I achieve this in ...
0
votes
0answers
6 views

Repeated lines in blkio_stats when using the Docker REST API for container stats

The containers/{id}/stats Docker endpoint returns a result which contains the following: blkio_stats: { io_service_bytes_recursive: [ { major: 8, minor: 0, op: "Read", value: 34185216 }, { ...
0
votes
1answer
32 views

Unable to debug startup code in ASP.NET website running in Docker

I have created a standard ASP.NET website targeting .NET Framework and am running it in Docker using Docker-compose. When debugging the website, none of the breakpoints in the "startup" code of the ...
0
votes
1answer
12 views

unable to invoke DOCKER using JENKINS user

I am trying to run a docker command as part of a jenkins job using shell. I get a standard error stating "Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/...
0
votes
0answers
11 views

using docker volumes to get changes outside of container

I am running mura cms inside a container and using MySQL database as a service. The changes I make inside the docker container e.g. creating posts, pages remain inside the container. 1. How can I ...
0
votes
2answers
10 views

Why httpd container stop working on restart of system?

On a fresh installation of httpd and PHP images and container get to create and work fine. But on restart of my system, httpd stop working. It's not able to find the docroot folder. So is there any ...
0
votes
1answer
7 views

Getting “docker: invalid reference format.” when running docker-deploy-hdp30.sh

I am trying to set up the HDP3 docker sandbox. I run the deploy script. The container starts successfully, but during the post deploy scripts, it ends with "docker: invalid reference format.". The ...
0
votes
0answers
22 views

Failure On Deploying Django On Docker

Docker tree file structures tree -L 3 . ├── banax_api │   ├── activities │   │   ├── admin.py │   │   ├── api_views.py │   │   ├── apps.py │   │   ├── enums.py │   │   ├── __init__.py │   │   ├── ...
1
vote
0answers
36 views

Unable to use Docker container with HTTPS

I am running Docker Desktop v2.0.0.3, Docker Engine 18.09.2 on a Windows 10 Pro v1809 machine. My application uses .NET Core 2.1.4. I am able to build and run Linux containers using HTTP just fine. ...
2
votes
0answers
25 views

Using Jenkins API in WP website - access denied

I'm trying to use the Jenkins API in my WordPress website through the development of a custom plugin. About my installation, I use Docker images : WordPress, Apache, PHP, Jenkins. Problem is I can't ...
0
votes
0answers
14 views

Getting “Did you mean to run dotnet SDK commands? Please install dotnet SDK from”

I am trying to containerize a .net MVC application, but when I run the image am getting the error like below [email protected]:~/sam/WebApp$ docker run -p 8000:80 sam:latest Did you mean to run ...
1
vote
1answer
37 views

Unable to mount volumes to docker-machine from ubuntu 18.04 host

I am trying to Dockerize the React application on Ubuntu 18.04 host to node 12 guest. I am following this guide https://mherman.org/blog/dockerizing-a-react-app/ and everything works fine until I get ...
1
vote
1answer
21 views

Accessing Spring boot Application refused to connect with IP 192.168.99.100 running in docker tool box

I am running a spring boot application in docker tool box. The application runs on port 8380 as set in application properties. However, when i run its image in a container, I am publishing with ports ...
1
vote
1answer
34 views

Commands in dockerfile to run spring boot application deployed on jboss server

I am new in docker. I have a springboot application which is running on jboss-eap-7.2. Usually when I want to run the application, first I have to run command mvn clean package in cmd and then after ...
-1
votes
0answers
14 views

MySQL working inside container but not connecting with DB when using the url

I have installed PHP in a container and mounted my local files and database to it. It all works inside the container. I can talk to mysql too but it doesn't work (shows can't connect to database) when ...
0
votes
0answers
15 views

Downloading docker images behind a proxy server

To download image behind a proxy server, I had setup HTTP_PROXY environment variable in /etc/sysconfig/docker and it works fine. But it requires me to restart the docker daemon. Is there any way to ...
0
votes
0answers
7 views

How to give image-pull-progress-deadline policy in JuPyter hub helm deployment?

I want to deploy my own docker image to jupyterhub and I am able to do so. However, the image is large and from an answer, I learned that it is a known issue for JHub to have 3 pods being able to pull ...
1
vote
1answer
35 views

Docker Unable to connect with postgres

I have a rails app which uses docker to run the app even for development. This is docker-compose file web: build: . dockerfile: Dockerfile.development environment: - ALGOLIA_API_KEY - ...
0
votes
1answer
26 views

While building through Jenkins got permission denied while trying to connect to the Docker daemon socket

Hi…I am running my Jenkins job on windows os. I am building war file on slave node which is in AWS- ubuntu 18.07 server. My Docker is installed on my slave node. My Docker file is in workspace. But ...
0
votes
2answers
25 views

Build the docker with react app throws error

Create the scratch react application using "create-react-app docker-build" then try to build the docker image for it with below docker script but it throws error when try to run that docker image. ...
2
votes
0answers
17 views

Cannot read resource files or refer them in Docker with Spring Boot

I use Spring Boot 2 and Thymeleaf as a frontend framework. And Thymeleaf is referring to templates that are located in src/main/resources/template folder. It is working fine. But when I try to run it ...
2
votes
1answer
16 views

Setting up Traefik with Cloudflare

I am trying to setup traefik using a combination of this guide, and the code found here. I am using docker-compose with Unraid, so far I have the following code: traefik.toml: debug = false ...
2
votes
1answer
15 views

Laradock: separate environment for each project or single environment for multiple projects?

Laradock offers two options: (1) separate Docker environment for each project and (2) single Docker environment for all your projects. What's the difference between the two setups? Which setup would ...