Questions tagged build

Explore the latest questions and answers asked by our top developers.

Docker compose with image and build both specified in a single service

I have understood that if I have in a directory the following Dockerfile FROM fedora ENV VAR=42 CMD ["bash"] And the following compose file docker-compose.yml version: "3.0" services: build: . image: ubuntu Docker should build an image from fedora and name it ubuntu. But instead it seems it just pulls the ubuntu image (if I […]

By lucmobz
Categorised as build, docker, docker-compose, image Tagged , , ,

docker: Error response from daemon: Get Service Unavailable. IN DOCKER , Windows

Error response from daemon when I’m trying to build image getting error Get "": net/http: request canceled while waiting for connection (client.timeout exceeded while awaiting headers) I’m new to docker. Please anyone help me this case. Thank you. Source: Docker Questions

By Na Peru KoTi
Categorised as build, docker, powershell Tagged , ,

Docker Build a GitHub Repository and Push to DockerHub

I’ve got a GitHub repo which has a Dockerfile in the project root. I want to build the repository, but am experiencing errors. Command run (The Dockerfile is located in the repository root, in the main branch) $ docker build$RepoOwner/$RepositoryName.git#main:. $ docker build$RepoOwner/$RepositoryName.git#main: Both yield the following error: unable to prepare context: unable […]

By M Choy
Categorised as build, docker, git, github, linux Tagged , , , ,

ADD failed: file not found in build context or excluded by .dockerignore: stat file does not exist

FROM python:3 ADD / RUN pip install pystrich CMD [ "python", "./" ] i am facing same issue with above code Source: Docker Questions

By Rahul P
Categorised as build, docker Tagged ,

Docker bind mount is empty inside a containerized TeamCity build agent with DOCKER_IN_DOCKER enabled

I’m running containerized build agents using the linux-sudo image tag and, using a Dockerfile (here) I have successfully customized it to suit our needs. This is running very well and successfully running the builds I need it to. I am running it in a Swarm cluster with a docker-compose file (here), and I have recently […]

The agent request is not running because all potential agents are running other requests

When I execute the build agent using Microsoft, the below error is reflecting Error: The agent request is not running because all potential agents are running other requests. Current position in queue: 6 Source: Docker Questions

By Na Peru KoTi
Categorised as build, docker Tagged ,

laravel docker php:7.4-fpm-alpine3.12 500 error

I have a problem for docker-compose up, when I git clone from the code repository on aws. Files become root from www I think it is because of the volumes But I don’t know how to fix this. Any helps? php-fpm dockerfile FROM php:7.4-fpm-alpine3.12 USER root WORKDIR /var/www RUN apk update && apk add –no-cache […]

By asdzxsad
Categorised as build, docker, docker-compose, laravel, php Tagged , , , ,

Can’t acces my front application in the localhost Docker

I have a front app who uses Angular-cli and i’am trying to check if it works proprely separetly before integrating it in the container core but it seems that i can’t get acces to the localhost. I’am using a macOS Catalina 10.15.7 with Docker Desktop. My Dockerfile is build like this: FROM node:14-alpine3.12 WORKDIR /app/front […]

By Zemmouri Tarek
Categorised as angular, build, docker, local Tagged , , ,

How to deploy a react app without source map using docker file?

Added this in package.json "scripts": { "start": "react-scripts start", "build": "GENERATE_SOURCEMAP=false react-scripts build", "postbuild": "rimraf build/**/*.map", "test": "react-scripts test", "eject": "react-scripts eject" }, When executing the following commands- $npm run build $serve -s build The minified code is deployed without the original source code. How to do it using dockerfile? The following snippet is from […]

By Sirisha N
Categorised as build, dockerfile, npm, reactjs, source-maps Tagged , , , ,

Command doesn’t carry over docker image

I’m passing my first docker tutorial, and for some reason, when I create docker image last command don’t pass there. Dockerfile FROM openjdk:11 as build RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY . /usr/src/app CMD ["java", ""] Log [email protected] forDocker % docker build -t my-hello-world . [+] Building 2.8s (9/9) FINISHED => [internal] load build […]

By Fedor Nikolaev
Categorised as build, docker, image Tagged , ,
1 2 3 15

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us