How to include files outside of Docker's build context?

How can I include files from outside of Docker's build context using the "ADD" command in the Docker file? From the Docker documentation: The path must be inside the context of the build; you...

Dockerfile copy keep subdirectory structure

I'm trying to copy a number of files and folders to a docker image build from my localhost. The files are like this: folder1 file1 file2 folder2 file1 file2 I'm trying to make...

How to execute a shell command before the ENTRYPOINT via the dockerfile

I have the following file for my nodejs project FROM node:boron # Create app directory RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # Install app dependencies COPY package.json...

How to stream the logs in docker python API?

I am building an image from a Dockerfile using the docker python API. import os import sys import os.path import docker client = docker.from_env() try: here = os.path.dirname(__file__) ...

How to run google chrome headless in docker?

My problem is how to run google chrome in docker container for e2e testing. I create a Dockerfile from official Jenkins image, but when try to run google chrome, it crashes and show the...

How to push Docker containers managed by Docker-compose to Heroku?

I currently have a locally tested and working web app that consists of 4 docker containers: Java MVC, NodeJS, Flask, and MongoDB. I have 4 Dockerfiles, one for each, and I manage the builds with...

Docker and Java - FontConfiguration issue

We've got a Java application that generates word documents using a 3rd party (Asposee but I don't think it matters here). The app is built from a simple Docker file: FROM openjdk:10-jdk-slim COPY...

Bind .m2 file to docker on build stage

I tried build a spring boot project in docker container based on below docker file.But every times all mvn dependency download from internet. How can I bind local .m2 file when i build the docker...

What does minikube docker-env mean?

In the Kubernetes minikube tutorial there is this command to use Minikube Docker daemon : $ eval $(minikube docker-env) What exactly does this command do, that is, what exactly does minikube...

unable to add certificates to alpine linux container

I have a small python app inside an alpine linux container, here is the dockerfile: FROM alpine # basic flask environment RUN apk add --no-cache bash git nginx uwsgi uwsgi-python py2-pip \ &&...

How to connect to SQL Server docker container from another container?

I have pulled and run SQL Server 2017 container image using the following command: docker pull microsoft/mssql-server-linux docker run --name mssql -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=!Abcd123' -p...

Using Rstudio with Docker compose and passing environment variables to rstudio user

I am using docker-compose to create a rstudio service which will be integrated with other services such a db. I am trying to pass some environment variables from the docker-compose.yml file to...

How to use the ARG instruction of Dockerfile for Windows image

I would like to pass an argument in my dockerfile to build my docker image. I've seen in other post and docker manual how to do this but it doesn't work in my case. Here is an extract of my code...

Deploying postgresql docker with ssl certificate and key with volumes

I'm trying to deploy a postgresql container. I'm trying to put ssl certificate and key in the container using volumes, but I can't get the permissions right. The files need to be readable by the...

Unable to load DLL 'activeds.dll'

I know this question was asked but nobody answer it. I'm building web API on Core 2.2 with JWT token bearer. In token request I added check if user exist on our LDAP. All working properly on IIS...

RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment

I tried to deploy my flask application in a docker in ubuntu18.04, and I was using python3.5 in my pipenv. But when I run docker build -t flask ., at a step of RUN pipenv install,I got this...

Client sent an HTTP request to an HTTPS server

I have a python application running on a virtual machine, were a legacy, and now I'm migrating to a Kubernetes. I use influxdb==5.2.3 package, connecting to this form Influx(host=r'influx_HOST',...

I am getting /bin/sh: [npm: not found error while executing the react image in Docker

I have added Dockerfile in the react project and run this command docker build . -t *image name*.My build was success.But when I start to run my image (docker run *imagename*) I got this error...

failed to solve with frontend dockerfile

I am pretty new to Docker and trying to build docker image with plain html but i have this error message, saying failed to solve with frontend dockerfile.v0: failed to read dockerfile: open...

Alpine ERROR: unsatisfiable constraints: py3-pandas (missing):

I have the following dockerfile: FROM alpine:latest ADD crontab.txt /crontab.txt ADD script.sh /script.sh COPY entry.sh /entry.sh ADD app /app RUN chmod 755 /script.sh /entry.sh RUN...

How to fix the error "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running"

I am trying to spin up a docker container inside another docker container and I get this error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running I...

Python.h: No such file or directory on Amazon Linux Lambda Container

I am trying to build this public.ecr.aws/lambda/python:3.6 based Dockerfile with a requirements.txt file that contains some libraries that need gcc/g++ to build. I'm getting an error of a missing...

CORS not working in Django but settings seem correct

I am trying to make a POST call to Django from a React Native Web front end on different subdomains. I thought I had configured CORS correctly, but that does not seem to be the case. Here's what...

Gitlab CI/CD: New runner has not been connected yet

I am very new to Gitlab CI/CD and I have read its documentation very carefully about creating a new CI/CD process using .gitlab-ci.yml file. As I have found out in order to have Continuous...

docker-compose build -> many "PermissionError: [Errno 13] Permission denied" error's

I am trying to run an instance of a docker container (django project) on my synology nas DS220+. After: docker-compose build I get this error: traceback (most recent call last): File...

Docker error with read-only file system unknown

I'm using Windows 10 x64 and just downloaded Docker, I tried running a simple "hello-world" dockerfile but I keep getting: docker: Error response from daemon: error creating temporary lease: file...

How to pnpm and Next.js in multi-stage docker file?

The official Next.js Dockerfile example does not work if I switch npm to pnpm. How should I modify that Dockerfile so that it remains multi-stage, but also uses pnpm instead of npm?

Docker image deploys locally but fails on Google Cloud Run

Here is my Dockerfile: # Use lightweight Python image FROM python:3.9-slim ARG DOCKER_ENV # PYTHONFAULTHANDLER=1 - Display trace if a sefault occurs. # PYTHONUNBUFFERED=1 - Allow statements and...

"key cannot contain a space" error while running docker compose

I am trying to deploy my django app to app engine using dockerfile and for that after following a few blogs such as these, I created a docker-compose.yml file but when I run the "docker compose...

Entrypoint script is not running from docker-compose file

My goal is to create an SQL login for my apps before running other images. Since my container uses Linux - scripts are saved with LF line endings. And the Docker output console is not showing any...