As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [dockerfile]

A Dockerfile is a file containing instructions to build a Docker image.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

npm ERR! `npm ci` can only install packages when your package.json and package-lock.json

I need to install dependencies to build the frontend on CI/CD. Dokerfile: FROM node:18.12.1 enter code here ENV CI="true" WORKDIR /workdir COPY package.json package-lock.json /workdir/ RUN ...
platypussss's user avatar
0 votes
0 answers
5 views

How to make a dockerfile with piwigo and a database

I wanna to create a dockerfile with piwigo and any database, but I don't know how to start. I tried to use docker-compose up and it works, but I really want to just to make the command docker build ...
SpicyyRiice's user avatar
0 votes
1 answer
14 views

How to initialize PostgreSQL database directly within a Dockerfile?

Is there a way to initialize/start/keep running a PostgreSQL DB directly from a Dockerfile? I have the following Dockerfile. # syntax = docker/dockerfile:1.4.0 FROM redhat/ubi8:latest # Install a ...
codenamezero's user avatar
  • 2,686
0 votes
0 answers
10 views

Piwigo - cannot connect to server

I'm pretty new with Docker and Piwigo. I cloned a github repository which is https://github.com/moritzheiber/piwigo-docker. I followed the instruction and make the 2 commands with the exact code and ...
SpicyyRiice's user avatar
0 votes
0 answers
8 views

Docker `failed to compute cache key and calculate checksum error

I'm getting the following error upon building docker images for a microservices project: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::...
brohjoe's user avatar
  • 802
0 votes
0 answers
15 views

How to Solve 'Error response from daemon: invalid reference format: repository name must be lowercase' in Docker Compose with Flask and Python [closed]

"Error response from daemon: invalid reference format: repository name must be lowercase" I am learning about Docker because I want to create a simple microservice with Flask. I created the ...
TY00's user avatar
  • 1
0 votes
1 answer
18 views

Adding a volume in dockerfile

I am trying to create an image of Windows with additional things. My question is whether it is possible to include a specific volume when creating the container. For example, I would like to do: ...
Hrathen23's user avatar
0 votes
0 answers
19 views

How can I pass environment variables from a Dockerfile to a Vue 3 app with Vite?

I'm building an Vue 3 app with vite. I will run this in a docker container, i'm trying to pass env variables from my dockerfile to the app so i can use them in the code. Dockerfile: # build stage FROM ...
byteArrayJake's user avatar
0 votes
0 answers
15 views

Apache Accumulo 2.0.1 with Zookeeper versions 3.5 and later

I need to update a docker stack containing a container for Apache Accumulo and one for Zookeeper. The old Dockerfile for Accumulo is something like this. FROM hdfs-custom-image ARG TAG ARG ...
Luigi's user avatar
  • 143
-2 votes
0 answers
12 views

Why docker-compose up gives invalid PID mode?

When I start Docker containers, I get invalid PID mode for pause container. How to fix it? I deleted all containers and reinstalled. But it didnt work. I tried with different ports but still facing ...
Vijay Anand's user avatar
0 votes
1 answer
13 views

lychee photo gallery docker file can't be deploy in the railways.app

Hi I have a problem at deploying an image with docker (Lychee photo gallery) on railway.app I have this Docker file Dockerfile.origin : # Base image FROM php:7.4-apache # Set the working directory ...
SpicyyRiice's user avatar
0 votes
2 answers
26 views

Dockerfile appears to build Angular but then cannot find the files it has created, what am I missing?

I am currently trying to build a Dockerfile to build out my front end Angular application. I have followed a tutorial and all the steps appear to be working until it needs to reference the built files ...
user68288's user avatar
  • 664
0 votes
0 answers
6 views

Can No Longer Access ArcadeDB-Studio Upon Restarting Its Docker Container

What are the details of your problem? I can't get to my ArcadeDB-Studio instance after restarting its Docker-container. Currently, I'm working on researching-and-testing ArcadeDB and I shutdown the PC ...
Zach's user avatar
  • 519
-2 votes
0 answers
13 views

Is Inkscape program available in Python based base image in docker

I am creating a image and need to deploy it in docker container. I have dependency of Inkscape in my project for converting svg to png . I need to update my docker file as I need to add following ...
Faizan Naeem's user avatar
0 votes
0 answers
22 views

How to locate Sqlpackage tool after global installation in Docker container?

I'm attempting (relatively inexperienced) to write a Dockerfile that publishes a dacpac to a linux container before firing up sqlserver, but building the Dockerfile always results in the following: /...
Dean_Akin's user avatar
0 votes
0 answers
16 views

Cannot Access GitLab on Localhost Using Docker Container

I've installed GitLab on my Windows laptop through Ubuntu with the commands listed at the following website: TheNewStack My docker compose file is the following: version: '3.6' services: web: ...
ashley wong's user avatar
-2 votes
1 answer
28 views

How to build a dockerfile in centos without returned a non-zero code: 1?

I'm tyring to do the create a container for tomcat by writing the dockerfile. After the build the dockerfile the error has been showed as below. Error: Failed to download metadata for repo 'appstream':...
Abd-98's user avatar
  • 1
0 votes
0 answers
15 views

déploiement des micro-services d'un projet dans les pods différents [closed]

Je veux découper un service en plusieurs micro-services tout en ayant toujours un seul projet. L'idée derrière est de créer des images différentes qui iront sur des pods différents pour que si le pod ...
Ed237's user avatar
  • 1
0 votes
1 answer
39 views

Dockerfile with Rust code - what should be the correct WORKDIR

I want to create a Dockerfile which will run my Rust code, however, I think I'm doing something wrong with the WORKDIR. My Rust code has the following structure: my_app ├── Dockerfile ├── code │   ├── ...
Ziva's user avatar
  • 3,091
0 votes
1 answer
42 views

Azure function running inside Docker container: POST request to API endpoint returns 'socket hang up' error

Unable to reach API endpoint inside Azure function running inside Docker container I'm trying to test Azure function execution inside docker container using docker run -e ...
Sayli Godage's user avatar
0 votes
0 answers
18 views

How do I get rid of older Docker image layers and maintain only the final build layer?

Like, i am using dockerfile to build image from one baseimage i have. Contents of Dockerfile are like: step 1) FROM baseimage step 2) RUN tdnf install curl after running dockerfile, many layers have ...
Priyanka Purushottam Kedar's user avatar
0 votes
0 answers
16 views

Why am I getting a 'Chrome failed to start' error when trying to run Selenium and FastAPI in Docker on DigitalOcean container?

In my Fast API Project some function need to be use selenium for scrap data when i run it in local. It's work but when i make a dockerfile and run it in digitalocean container it not work. I can see /...
Theerastillhere's user avatar
0 votes
0 answers
14 views

Wait for mysql import to finish in docker so that my backend container can connect to it by docker-compose

I've to write docker compose for importing mysql file of size 1.5gb inside container. Also my backend should wait for the mysql import to complete also next build it should not import data my docker-...
Aryan Tirkey's user avatar
-1 votes
0 answers
10 views

how to containerize .net multi project solution in visual studio

I am facing this error while adding docker support to multi project .net solution in visual studio i have tried to move .sln file to higher folder but issue persists. Also independent dockerfile does ...
abhi sonawane's user avatar
1 vote
1 answer
34 views

Communicate between docker containers without using docker-compose

I have a flask app that runs using docker-compose and has 2 services listed in my docker-compose file - 1 for my flask app and 1 for nginx. I'd like to deploy to AWS Lightsail, but that unfortunately ...
user1104854's user avatar
  • 2,125
0 votes
0 answers
12 views

Image size locally much larger than on Dockerhub

my Dockerfile looks like this: ARG BASE_CONTAINER=jupyter/pyspark-notebook:spark-3.3.2 FROM $BASE_CONTAINER LABEL author="Doublena" USER $NB_UID When I do a docker build, docker ...
femibyte's user avatar
  • 3,287
0 votes
0 answers
8 views

Integrity check Dockerfile entrypoint layer

I'm wondering if there is a way I can perform an integrity check of a containers entrypoint. The images are used in micro-services and easily modified by the teams running them. Considering each layer ...
Bonn93's user avatar
  • 141
0 votes
0 answers
14 views

Why does 'dlv connect' result in 'Command failed: connection is shut down' during remote debugging session in a container with port-forwarding?

dlv connect results in Command failed: connection is shut down I want to connect to delve (Go debugger) remotely and run a debugging session for the process in a container. But when I do dlv connect, ...
user21980941's user avatar
1 vote
2 answers
57 views

Angular universal with docker giving bad gateway

I am trying to dockerizing a angular universal app using nginx, and it's giving me really hard time. It keeps saying 502 bad gateway and I am unable to wrap my head around it. This is my Dockerfile ...
M Safdar Ali Khan's user avatar
0 votes
0 answers
21 views

How to Build Docker image of an AngularApp so it use ClusterIP service ok k8s deployment toconnect WebAPI?

I have a demo app frontend built in Anguler; the backend is dotnet core. I make a backend docker image and this is my docker file. #See https://aka.ms/containerfastmode to understand how Visual Studio ...
tauqeerahmad24's user avatar
0 votes
0 answers
27 views

Troubleshooting Dockerfile build: ERROR – this error may indicate docker daemon is not running

today I was following a tutorial of how to make an OS with kernel. When I try to build the dockerfile appears this error: ERROR: error during connect: this error may indicate that the docker daemon ...
Nico Raiz's user avatar
-1 votes
0 answers
23 views

How my front end code is able to access my backend node app container without giving port number? [closed]

I have created a node app docker container and i have bind this container on port 80 of my machine. Now i have a react js frontend code which is able to connect the backend node app. import React, { ...
Kaustubh bhardwaj's user avatar
0 votes
2 answers
50 views

Docker: How to run 2 commands in CMD if one of them requires ENTRYPOINT?

I am trying to enable cron for arangodb image: https://github.com/arangodb/arangodb-docker/blob/a33b50b8a5c9a60f8c812016899485cc9cd78de3/alpine/3.10.3/Dockerfile What is the correct way to pass 2 ...
Bogdan Timofeev's user avatar
2 votes
1 answer
32 views

Difference between --cache-to/from and --mount type=cache in docker buildx build

According to the official documentation, in order to leverage a cache backend in docker buildx build, you need to use the --cache-from/to flags. This makes sense as intuitively it signifies the place ...
pkaramol's user avatar
  • 15.7k
1 vote
0 answers
47 views

How do I dynamically launch new containers in backend?

I am running a docker container which runs a web application deployed on AWS EC2 accessible via its IP address. I want to dynamically create a similar new container every time a user enters the IP ...
Pawan Rama Mali's user avatar
0 votes
0 answers
20 views

Docker-compose up giving Resource ID ERROR

getting below error while running docker-compose up . Traceback (most recent call last): File "/home/garvit/.local/bin/docker-compose", line 8, in <module> sys.exit(main()) ...
Garvit Singhal's user avatar
-2 votes
0 answers
18 views

How would you create a docker file for the code given below and containerize the app in order to publish it to azure cloud [closed]

Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. ...
Real Zilver's user avatar
0 votes
1 answer
23 views

getting COPY failed: stat app/dist/out: file does not exist when building angular docker container

that is Dockerfile configuration FROM node:13-alpine as build-nodejs WORKDIR /app COPY package*.json /app/ RUN npm install COPY ./ /app/ ARG build_command=build_prod RUN npm run ${build_command} -- -...
Myrzabek's user avatar
0 votes
0 answers
27 views

Trying to access php symfony docker container on localhost

as you can see below I have this docker compose file after building the containers I went inside the bash of symfony-container and installed symfony 4.4 now I am trying to connect to http://localhost:...
Ahmed Egeh's user avatar
-1 votes
0 answers
20 views

Dockerfile - COPY failed: no source files were specified

Hi guys I am trying to create a pipeline at gitlab for my election-system application. And at the console there is an error at the COPY command. Here is my Dockerfile: FROM registry.gitlab.com/ncrefe/...
Ncrefe's user avatar
  • 19
2 votes
0 answers
38 views

How can I fix the 'stream terminated by RST_STREAM' error when building a Docker image for a Vue app?

I'm trying to build a new image with docker, but when I enter the build command: docker image build -t vue-app . I get this error: [+] Building 0.2s (2/2) FINISHED => [internal] load build ...
KaloyankerR's user avatar
0 votes
1 answer
33 views

why my environment didn't change when i changed it in compose file?

i ran postgres database with docker compose, but when i change environment in compose file, my login username and password didn't work, for example if i change environments in compose ...
Iman Jafari's user avatar
0 votes
0 answers
37 views

Deployment of Docker Container to CloudRun fails

I am attempting to configure an automatic deployment system which builds/re-builds a docker container to GCP's Cloud Run, from the Artifact Registry whenever any change are made to the source code. ...
Keith Cozart's user avatar
0 votes
2 answers
58 views

Nest.js docker image hot reload not working

My dockerfile is ################### # BUILD FOR LOCAL DEVELOPMENT ################### FROM node:18-alpine As development # Create app directory WORKDIR /usr/src/app # Copy application dependency ...
GianPierre Gálvez's user avatar
0 votes
1 answer
20 views

creating a Dockerfile that grants ownership of any created files to the host user instead of root

I am trying to create a Dockerfile that grants ownership of any created files to the host user instead of root. Ideally, I could share the image with others and maintain this functionality without ...
BillyBologna's user avatar
2 votes
1 answer
22 views

CUDA to docker-container

I need to make docker of my server, but it works only with cuda, how can i add it in my Dockerfile? FROM python:3.10 ENV FLASK_RUN_PORT=5000 RUN sudo nvidia-ctk runtime configure # Here COPY . /app ...
Ubuty_programmist_7's user avatar
0 votes
0 answers
35 views

What can I do to troubleshoot Django's failure to connect to Postgres in Docker-Compose on Ubuntu server?

I am trying to deploy my django app on Ubuntu server. It is actually working on localhost with windows machine. Dockerfile # pull official base image FROM python:3.11.2-slim-buster # set working ...
Jakhongir Turgunboev's user avatar
1 vote
0 answers
25 views

How can I resolve the 'Error executing command' message while building a Docker container

I am doing a docker-compose build and I am getting the following message #0 3.997 ## Installing packages required for setup: lsb-release gnupg... #0 3.997 + apt-get install -y lsb-release gnupg > /...
pavel's user avatar
  • 11
-1 votes
0 answers
46 views

WSL Ubuntu on window server 2019 Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

In window Server 2019 (Datacenter edition), WSL does not support it, So we have to install WSL ubuntu by manual process as mentioned in documentation by Microsoft Documentation. After installing WSL ...
Rakesh Kumar's user avatar
0 votes
0 answers
21 views

How to use the R version specified in the lock file to build the Image/environment

I'm using this great renv package to manage my R applications dependencies in the Docker File.As you can see, in the renv.lock file that specifies the packages versions and dependencies, it also ...
Yasin Amini's user avatar

1
2 3 4 5
296