dockerfile Questions

3

I'm trying to add the --platform=linux/amd64 flag to my dockerfile's FROM statement. I need to do this because I'm working on an m1 laptop and the default architecture (linux/arm64/v8) is not compa...
Bombazine asked 18/1, 2022 at 10:45

2

I have a simple Spring Boot API project that runs well when I execute a bootable jar file on my local machine or a docker image on Google Kubernetes Engine but emits errors when using docker run on...
Arrowood asked 17/5, 2021 at 6:54

3

I've set up a docker configuration to run my React app, but when starting the container, I encounter the following error: frontend-1 | failed to load config from /app/vite.config.ts frontend-1 | er...
Duroc asked 16/4 at 18:35

3

Solved

I am using docker compose and this is my yaml file web: dockerfile: Dockerfile-dev build: . command: gulp volumes: - .:/app ports: - '9001:9001' and here is my docker file FROM node:0.12...
Marilumarilyn asked 23/10, 2015 at 7:45

4

I have a docker image on my local machine. When I try to run the image using the below Jenkins file. agent { docker { image 'gcc/sample:latest' args "-v /etc/passwd:/etc/passwd:ro } } Then I ...

3

Solved

In my Dockerfile, I have the following: COPY . /var/task ...which copies my app code into the image. I need to exclude the vendor/ directory when performing this copy. I cannot add vendor/ to .do...
Section asked 14/1, 2021 at 14:3

5

Solved

Consider the following docker build context: src/ hi there bye and Dockerfile: FROM ubuntu RUN mkdir test COPY src/hi src/there test/ This works just fine but I would like to make the lis...
Chapen asked 4/5, 2020 at 18:44

2

I'm using a platform (Cytomine) on Ubuntu 18.04 to run some deep learning containerized applications (this platform handles the Docker images and containers automatically, so I only need to create ...
Orran asked 12/4, 2020 at 10:38

2

Solved

https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#minimize-the-number-of-layers After read the above doc, I tested to prove the following statement: Only the instructions R...
Panada asked 13/4, 2022 at 8:0

3

Currently I'm using the following command to start a container with a predefined mac address: docker run -d --lxc-conf="lxc.network.hwaddr=00:50:56:8E:8B:77:00:00" --name=my_container my_image ...
Cherimoya asked 16/3, 2015 at 10:36

3

Solved

Is is possible to chain the COPY commands together like what can be done with the RUN command? Example of chaining run command: RUN echo "root:user_2017" | chpasswd && \ groupadd -g 1000...
Butanol asked 11/8, 2017 at 20:46

2

What is the programming language used in docker file and docker-compose files. We use dockerfile to build docker images. So what is the language used to develop a dockerfile?
Deem asked 16/11, 2019 at 15:4

10

Solved

I have the following Dockerfile: FROM ubuntu ENV NPM_CONFIG_LOGLEVEL warn ENV admin_user="PeerAdmin" network_name=$1 version=$2 hversion=hlfv1 fabrik_path=/fabric-tools project_dir=$(pwd...

7

Solved

Following is my dockerfile that works to run the H2 Database: I want to create a docker compose file for this. FROM klousiaj/oracle-java:7.79 MAINTAINER J.P. Klousia <klousiaj> ENV DOWNLOAD...
Coughlin asked 3/1, 2017 at 14:20

4

Solved

here is my requirements.txt beautifulsoup4==4.11.1 cachetools==5.2.0 certifi==2022.12.7 charset-normalizer==2.1.1 click==8.1.3 colorama==0.4.6 Flask==2.2.2 Flask-SQLAlchemy==3.0.2 google==3.0.0 goo...
Calumnious asked 30/12, 2022 at 7:35

2

I'm writing a Dockerfile for an image that, when run, performs the following two things in order: Start up a daemon as root Start up an interactive shell as a non-root user The problem is that EN...
Benavidez asked 22/5, 2019 at 21:41

3

Solved

I need to configure Postogres with some SQL commands, but everything I put in the /docker-entrypoint-initdb.d folder doesn't get executed. I'm using the postgres:9.6 image. My Dockerfile is as foll...
Dygall asked 6/12, 2022 at 15:34

8

I'm new to docker. I'm wondering what is the wrong here? this is a basic react-project that i wanted to build a docker image from it according to a tutorial that i follow. DockerFile FROM node:14....
Codify asked 27/2, 2022 at 13:11

2

I'm receiving the error in the title and I'm not sure why. I'm trying to run a docker container in Unraid. The dockerfile code is down below if anyone would like to critique. ENV DEBIAN_FRONTEND=no...
Flosi asked 29/3, 2021 at 18:42

3

Solved

I'm pretty new to docker and, although I've read lots of articles, tutorials and watched YouTube videos, I'm still finding that my image size is in excess of 1 GB when the alpine image for Python i...
Chlamydate asked 5/8, 2021 at 0:7

2

When building my windows dockerfile (.net core nano)... docker build -f *** -t ***:*** --build-arg ARG1=foo --build-arg ARG2=bar . I'm getting an error during the build that occurs in response to m...

3

Solved

I want to run a Jenkins instance in a docker container. I want Jenkins itself to be able to spin up docker containers as slaves to run tests in. It seems the best way to do this is to use docke...
Describe asked 23/3, 2016 at 17:36

3

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 defi...
Bor asked 27/5, 2023 at 20:7

2

Solved

I am using headless chrome based on alpine:3.7 image under docker. However, when I take a screenshot using Chrome DevTools Protocol, I found alpine cannot show languages other than English like the...
Empanel asked 2/3, 2018 at 10:50

4

When I run docker-compose down without -v or --volumes, why my data is lost? Does Docker deletes my volume? When I inspect with docker volume inspect pgdata, it shows up always the current timestam...
Spirometer asked 19/1, 2021 at 21:42

© 2022 - 2024 — McMap. All rights reserved.