docker-build Questions
3
Solved
In the past I could simply do something like this:
Dockerfile:
FROM ubuntu
RUN echo "test"
which would output test to my shell. I used this as a way of debugging my builds.
In the latest...
Loireatlantique asked 5/1, 2021 at 13:43
2
Need help with dockerizing legacy application
I have a legacy app which contains multiple components(msi installers). These components use variety of technologies like C#, windows forms, C++, MFC, ...
Davies asked 25/4, 2019 at 9:49
7
I have a Dockerfile that I run on amd64 but want to run on arm64. Since go build tool takes GOARCH=arm64 as argument I don't need any other cross compilation tool to make the binary.
# Run the bui...
Hypoderm asked 14/12, 2017 at 9:27
3
Solved
I am learning how to use ARG and ENV in Dockerfiles.
I have this simple Dockerfile:
ARG my_arg
ARG other_arg=other_default
FROM centos:7
ENV MY_ENV $my_arg
ENV OTHER_ENV $other_arg
CMD echo "$M...
Overload asked 28/2, 2020 at 11:5
5
Solved
Is there any way to cache docker-compose so that it will not build again and again?
here is my action workflow file:
name: Github Action
on:
push:
branches:
- staging
jobs:
test:
runs-on: ubu...
Gromyko asked 28/4, 2020 at 23:8
43
I just downloaded Docker Toolbox for Windows 10 64-bit today. I'm going through the tutorial. I'm receiving the following error when trying to build an image using a Dockerfile.
Steps:
Launched Do...
Particularism asked 19/2, 2016 at 17:48
2
The following commands do not show the output ubuntu1 image:
docker buildx build -f 1.dockerfile -t ubuntu1 .
docker image ls | grep ubuntu1
# no output
1.dockerfile:
FROM ubuntu:latest
RUN echo &...
Evidence asked 6/12, 2022 at 18:34
5
When I try to build my docker file, docker return the following error:
[+] Building 0.0s (1/2)
=> ERROR [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfi...
Sosa asked 11/3, 2021 at 22:20
3
I use the --ssh docker buildkit feature and it works fine locally.
I want to build Docker at a remote server and for that I use the -A flag to forward my local github key, like:
ssh -i "server.pe...
Thearchy asked 21/1, 2020 at 9:47
2
Solved
Windows 10, DockerDesktop v3.5.2, Docker v20.10.7
Whenever my computer is disconnected from the Internet
the command docker build -t my_image . produces output like the following.
Dockerfile contai...
Hebron asked 25/7, 2021 at 17:9
10
Solved
I'm building a container for a ruby app. My app's configuration is contained within environment variables (loaded inside the app with dotenv).
One of those configuration variables is the public ip...
Sisely asked 23/10, 2013 at 9:16
1
I can create my virtual environment dev1 successfully, but I can not activate it and switch into in during the Docker building.
All I want is to switch the venv and install my dependencies in requi...
Alasdair asked 15/12, 2020 at 15:22
3
Solved
I have a Dockerfile in which I first compile the Mosquitto server in one layer, then use COPY to copy the source files of an authentication plug-in into the image and finally RUN the compilation of...
Dahlberg asked 2/2, 2019 at 22:33
3
# Update
I just realized that ADD/COPY command doesn't permit any access
to files or directories outside of current working directory in host.
One more thing is that if you specify an absolute pat...
Aliment asked 30/5, 2017 at 2:21
2
I was trying to create a docker Image where it is getting stuck at the "npm run build" step. I could see the message as build completed successfully but it is not proceeding to the next s...
Ratline asked 8/12, 2021 at 7:10
0
Note that I am trying to build this locally with docker desktop and not in Azure CI/CD pipeline.
I have started this process using https://github.com/microsoft/artifacts-credprovider which also did...
Cox asked 4/3, 2023 at 3:59
6
Solved
Snippet from my Dockerfile:
FROM node:12.18.0
RUN echo "hello world"
RUN psql --version
When I run docker build . I don't see any output from these two commands even if they are not cach...
Larceny asked 12/11, 2020 at 13:23
11
Solved
I get the error:
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest
when building the following Dockerfile:
FROM mcr.microsoft.com/dot...
Jacqualinejacquard asked 30/8, 2021 at 12:24
2
I have a rather large Dockerfile that has multiple layers. Some of these layers need quite some time. I noticed that many things do not depend on each other.
So hence the obvious question: Can I d...
Make asked 21/5, 2020 at 13:31
3
Solved
I've only seen examples of using COPY to copy files between stages of a multi stage Dockerfile, but is there a way to simply copy an ENV variable? My use case is to start out with a git image to ju...
Tauten asked 20/10, 2018 at 10:50
1
My directory structure:
├── src/
├───── backend/
├─────── Dockerfile
├─────── ...
├───── frontend/
├─────── Dockerfile
├─────── node_modules/
├─────── ...
├───── commons/
├─────── ...
├── .dockeri...
Grimbald asked 30/1, 2020 at 7:38
1
My Dockerfile executes RUN npm run build command. When I execute docker build command on t2.micro EC2 instance, instance freezes and does not respond (I cannot even connect with ssh). When I monito...
Spinose asked 6/12, 2022 at 22:46
1
I am trying to build a python docker container.
Here is my dockerfile:
# syntax=docker/dockerfile:1
FROM python:3.8-slim
WORKDIR /src
COPY req.ini req.ini
RUN apt-get update
RUN pip install --upgra...
Chelsiechelsy asked 2/2, 2022 at 10:28
3
Solved
I have the following Dockerfile:
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
git \
make \
python-pip \
python2.7 \
python2.7-dev ...
Neoclassic asked 10/1, 2019 at 9:25
1
Solved
I am exploring the docker build process using the Buildkit. I have enabled it by setting an environment variable DOCKER_BUILDKIT=1 on the CLI before invoking docker build. From the buildkit documen...
Arica asked 21/7, 2022 at 14:3
1 Next >
© 2022 - 2025 — McMap. All rights reserved.