Category "dockerfile"

Cannot import functions in from one directory's subfolder to other pyhton files in same parent directories sub folders. How do I use init.py files

parent_folder / subfolder1 / subsubfolder1/ a.py b.py subsubfolder2/ c.py d.py e.py subfolder2 / subsubfolder2/ f.py g.py subfolder3 / h.py i.py g.py I want to

Docker build context puzzle

My project structure: projectRoot/ - service/ - data.json - Dockerfile In that Dockerfile : FROM node:16.14-alpine3.14 ENV THE_DATA=/tmp/data.js

dockerfile --platform option of the FROM instruction not work

Docker version: my base_image with multiple architecture:  Dockerfile: I use FROM --platform=linux/arm64 ${base_image} to force use the arm64 image bu

Symfony- docker container Could not open input file: bin/bash

I started my Symfony 6 project with Docker successfully. I have a problem when accessing the PHP container and trying to run php bin/console doctrine:migrations

Dockerized Vue app - hot reload does not work

Dockerized Vue app loads normally to the browser, when applying changes to the code are not reflected without refresh. Dockerfile FROM node:14-alpine # make th

Pass build argument to bash command in Dockerfile

Currently, my workflow is to use an alias for the jupyter lab command via RUN echo 'alias...' at the end of my Dockerfile: RUN echo 'alias jupyterlab="jupyter l

Docker not found when building docker image using Docker Jenkins container pipeline

I have a Jenkins running as a docker container, now I want to build a Docker image using pipeline, but Jenkins container always tells Docker not found. [simple

API responds locally (vs 2019) but not in local docker container

I am new to Docker and going through documentation and Pluralsight videos. I have a really simple API I am practising/learning to run as a docker container. Eve

Dockerfile doesn't write files to host only to container

What I want is for this dockerfile to clone into the host machine (mine) and I'll copy it over as a volume, but instead it's cloning it directly into the contai

Inject a binary into a Docker Image

I need to create automation to inject a binary (security tool) to every docker image(pre-built) that is going to be promoted to higher envs (Promote To Prod), w

Set Java/JRE default settings which can be overridden by JAVA_TOOL_OPTIONS

I have multiple java spring boot services, which are running in docker containers and are configured via docker-compose. Each of those services need several jav

Dockerfile: Cannot find module '/usr/src/app/dist/main' - Dist folder does not exists on container

I'm having the following error when trying to execute my NestJS App with Docker: > [email protected] start:prod > node dist/main node:internal/modules/cj

Node gRPC returns "No status received" when deployed on Cloud Run with Docker

After deploying my server on Cloud Run, calling the endpoint with BloomRPC or other clients, the service returns "error": "2 UNKNOWN: No status received". Calli

unable to locate package "software-properties-common" docker image

I am trying to create an ubuntu focal image using docker file. I have this line in my dockerfile: FROM ubuntu:focal AS systemdependencies RUN apt update \

Create Postgres Docker Image with Database

How to Create Postgres Docker Image with Data? I have this folder/file structure: - initdb - 01-createSchema.sql - 02-createData.sql - Dockerfile The Docke

docker-compose with podman won't allow to run entrypoint

I use Fedora 35 Silverblue. I followed this article on how to make podman and docker-compose friends in rootless mode. I made a simple project: . ├─

Should I put the base image in all project's images?

Ok, my question is all about Am I doing it right? if not, what's the best practice? Recently I've used Docker for my project. Currently, I build a new docker

Docker npm install --production not working

I have a dockerfile where I am using alpine-nodejs version 16 as the base image. The npm version is 8. When the step of npm install --production is executed whi

Error response from daemon: failed to create shim when installing Nodejs

I am trying to create a docker image with node.js version 16. However I failed to find solution to this problem despite searching stackoverflow and other platfo

Docker Container not loading static files from Django-React Project

I've been trying to get my main.js file and css static files to load in my container and on google cloud for the past 4 days. Here is my file tree: main/ - fr