Category "dockerfile"

How to apply Dockerfile `git config` values to a non-root user's ssh session?

I have a Dockerfile whose base layer includes git, configures git's global user.name and user.email and that starts openssh-server. The Dockerfile is along the

docker-compose Equivalent to Docker Build --secret Argument

We have used the technique detailed here to expose host environment variables to Docker build in a secured fashion. # syntax=docker/dockerfile:1.2 FROM golang:1

Docker: Can't read class path resource from spring boot application

Reading a classpath resource as, try { final ClassPathResource classPathResource = new ClassPathResource(format("location%sGeoLite2-City.mmdb", Fil

Use buildx build linux/arm64 in docker-compose file

I can build my dockerfile separately using following command: docker buildx build --platform linux/arm64 -t testbuild . now I want to use buildx in docker-co

docker-compose create volume of my app folder and run node command in it

Docker beginner here. I am trying to set up docker for local development. My ultimate goal is to be able to use "vite" to do hot module reloading development se

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.s

How to solve network connection when RUN yarn install in docker image build?

I have a peculiar problem occurring only in the Mac environment. When I run the docker build command to build my Node image, it is not able to fetch the package

Not able to create a docker image for splash scrapy app python?

I am using scrapy-splash to rendering javascript in web scrapping. So, splash run in a separate container. see here https://splash.readthedocs.io/en/latest/inst

Copying files with execute permissions in Docker Image

Seems like a basic issue but couldnt find any answers so far .. When using ADD / COPY in Dockerfile and running the image on linux, the default file permissio

How do I replace "\r" line endings when running Docker script on Windows?

I'm using Docker 19 on Windows 10 (using Cygwin to run Docker). I have this web/Dockerfile ... FROM python:3.7-slim RUN apt-get update && apt-get inst

Docker-compose.yml file that builds a base image, then children based on it?

For clarification, when I say base image, I mean the parent image that has all the common configurations, so that the children based on it don't need to downloa

Updating Path multiple times in the same RUN command

Consider the following Dockerfile. On the last lines, first git is installed, and then something is appended to the path environment variable. FROM mcr.microsof

Docker custom user Permission Denied, while accessing container's file system

I've created a custom user using my Dockerfile. Here is my Dockerfile: FROM python:3.7-alpine3.10 # Make /opt/ working directory in docker container. WORKDIR /

Docker build error duplicates of file paths not supported

This is my Dockerfile codes: FROM node:16.10-alpine3.12 as base RUN apk update RUN apk add git WORKDIR /app COPY package.json . FROM base as builder RUN npm i

Setting relative paths in Dockerfile when building with ansible

I am trying to build some docker files using ansible, but it is not clear what is used as the build directory. directory structure . ├── build

Running .NET 6 project in Docker throws Globalization.CultureNotFoundException

I have upgraded API project from .NET 5 to .NET 6 successfully and running fine when executed locally (without Docker). I have also updated the version in Docke

How to refresh your shell when using a Dockerfile?

I am trying to build a Dockerfile that can make use of Azure functions. After unsuccessfully trying to build it using alpine:3.9 because of library issues, I sw

debconf: delaying package configuration, since apt-utils is not installed

I'm setting up Docker to run my CakePHP application and my Dockerfile is like FROM php:7.2-apache # Enable Apache Rewrite + Expires Module RUN a2enmod rewrite

Docker - Mongo DB instance not connecting with application

I am using docker mongo with my aspnet core application but I am unable to make connection with mongodb which is running under container. Although I am able to

How can I run a docker container on localhost over the default IP?

I'm following the following tutorial on how to start a basic nginx server in a docker container. However, the example's nginx docker container runs on localhost