dockerfile Questions

6

Solved

#25 3.990 × python setup.py egg_info did not run successfully. #25 3.990 │ exit code: 1 #25 3.990 ╰─> [1 lines of output] #25 3.990 error in anyjson setup command: use_2to3 is invalid. #25 3.990...
Elspeth asked 28/5, 2022 at 9:29

2

I wonder if is possible to set a LABEL during building of a container with a based that is based on a command run on the container. Example, wanting to expose python=2.7.14 when the number would b...
Hailey asked 19/4, 2018 at 16:48

6

I am trying to build a docker image on my windows machine and I keep getting this error: [+] Building 2.1s (12/15) => [internal] load build definition from Dockerfile 0.0s => => transfe...

3

There's Docker buildkit: https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/experimental.md which has an extra option to RUN (amongst others): the --mount=type=cache. What I coul...
Ledesma asked 10/7, 2020 at 12:56

4

Solved

I have to execute two commands on the docker file, but both these commands are attached to the terminal and block the execution from the next. dockerfile: FROM sinet/nginx-node:latest RUN mkdir /u...
Cally asked 23/7, 2019 at 17:18

3

Solved

I have a simple docker file of FROM ubuntu:18.04 COPY . /usr/src/app/ COPY docker_files/.bash_aliases /root/ $ docker build -t dock . Sending build context to Docker daemon 146.9kB Step 1/3 : FRO...
Copyread asked 12/4, 2019 at 20:49

6

If I have a docker file that has multiple stages (such as base and build), is there a way to change the docker command that visual studio uses when debugging the container - it seems to use the fir...
Radiometer asked 27/12, 2017 at 22:50

4

I'm using macOS 11.4 and Docker 3.3.3. My docker file looks like FROM python:3.8.10-slim-buster RUN apt-get update && apt-get install --no-install-recommends -y \ # dependencies for build...
Kyrstin asked 28/5, 2021 at 2:52

4

I am learning docker now. I am trying to figure out what kind of problem Docker label can solve. I can understand why use label in Dockerfile, e.g add build-related metadata, but I still don't get...
Domeniga asked 13/11, 2017 at 10:50

2

I'm currently running into an issue with my docker builds that rely on centos7 I reference the image as follows: FROM centos:7 Error: `Could not retrieve mirrorlist http://mirrorlist.centos.o...
Certifiable asked 1/7, 2024 at 14:43

10

Solved

My docker containers are running in a local network, called my_local_network. To assure the network exists, every build script starts with: docker network create --driver bridge my_local_network ...
Gagnon asked 6/2, 2018 at 12:49

7

When trying to do docker push <IMAGE> to a private docker image registry, getting an error saying manifest invalid along with the error, it's giving some [DEPRECATION NOTICE], which might be...
Suffice asked 28/11, 2019 at 15:32

3

I have the below Dockerfile for zookeeper and I am trying to create an image for it, but it is giving me an error. I have recently started working with Docker, and started playing with a Zookeeper ...
Community asked 6/11, 2016 at 1:49

6

Solved

I'm trying to run a simple Docker image with Apache and a PHP program. It works fine if I run docker run -t -i -p 80:80 my/httpd /bin/bash then manually start Apache service httpd start how...
Spadix asked 22/1, 2014 at 10:23

12

Solved

I am trying to increate the upload limit of my Dockerized Wordpress instance to 150M. [filename] exceeds the maximum upload size for this site. I have created an uploads.ini file and attached it...
Dismissive asked 23/3, 2017 at 17:42

9

I am trying to containerise Svelte js app inside a docker container and I am getting this error on the log complaining about esbuild in a different platform , I am using M1 mac, I have tried to ins...
Corin asked 27/7, 2022 at 14:19

9

Solved

When running docker-compose up --build I'm constantly getting this error. => [web internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.58kB 0.0s => [...
Hudak asked 9/11, 2023 at 10:20

3

Solved

I am fairly new to Docker and containerisation. I am wanting to decrease the size of my_proj docker container in production. I prefer installing packages and managing dependencies via Poetry. How c...
Nipple asked 19/8, 2021 at 9:29

6

I try to add (override) a private nuget source to my build script in order to add the user/pw - and keep it out of my source control. What I tried so far: nuget is not recognized as command insid...
Gag asked 12/8, 2019 at 13:32

6

Solved

What I'm currently doing: Dockerfile: FROM python:3.5.1 ENV PYTHONUNBUFFERED 1 RUN mkdir /www WORKDIR /www ADD deps.txt /www/ RUN pip3 install -r deps.txt ADD . /www/ RUN chmod 0755 /www/docker...
Maximo asked 19/4, 2016 at 9:34

8

For some certain reasons, I have to set "http_proxy" and "https_proxy" ENV in my dockerfile. I would like to now unset them because there are also some building process can't be done through the pr...
Crossgrained asked 22/4, 2019 at 5:10

7

Solved

I admit, I am a newbie in the container-world. But I managed to get docker running on my W10 with WSL2. I can also use the docker-UI and run Containers/Apps or Images. So I believe that the infrast...
Anacreon asked 28/11, 2020 at 13:33

3

I have a container in my stack that needs to be recreated each time I docker-compose up. I can docker-compose up --force-recreate but this recreates all my containers. Is there syntax (maybe for th...
Litterbug asked 2/11, 2017 at 17:41

5

Solved

Project contents: rob@work:~/git/proj $ ls lib node_modules props.json start.sh app.js Dockerfile package.json README.md start.sh .. rob@work:~/git/proj $ cat start.sh #/bin/bash # do things ...
Brazell asked 24/5, 2016 at 16:24

4

Solved

When building an image that needs to be compiled from typescript, I get this error. sh: 1: tsc: not found The command '/bin/sh -c npm run tsc' returned a non-zero code: 127 Here is the relevant...
Semantics asked 21/4, 2021 at 16:10

© 2022 - 2025 — McMap. All rights reserved.