Questions tagged [docker-build]

The Docker CLI (Command Language Interpreter) command for building Docker images.

Official documentation for this command is available here:

https://docs.docker.com/engine/reference/commandline/build/

560 questions
0
votes
1 answer

Why is the docker image not building?

I was following the tutorial on the official website. https://docs.docker.com/get-started/part2/#build-the-app I created a directory named dir and added the Dockerfile, app.py and requirements.txt. When I try to build this, the error…
gchandra
  • 94
  • 1
  • 8
0
votes
0 answers

Remote host Jenkins change permisions

I am using Jenkins on Azure and when I build the project Jenkins Fetches the Repository, it builds the image: WEB_IMAGE_NAME="${ACR_LOGINSERVER}/front-end-image:kube${BUILD_NUMBER}" ${WORKSPACE} = "/var/lib/jenkins/workspace/reply-frontend" docker…
marhg
  • 659
  • 1
  • 17
  • 30
0
votes
1 answer

Docker Build and Push in Detail

Many people know, what docker build and docker push are doing in general on a high level, but what do they exactly do on a low level? let's say we have a Dockerfile like this FROM alpine:latest RUN touch ~/tmp RUN touch ~/tmp2 this will create the…
Flo
  • 2,699
  • 4
  • 24
  • 46
0
votes
2 answers

Running docker build on a dockerfile located within a container

I'm a beginner with Docker and I'm trying to get to grips with its structures and processes. I have the following scenario at work that I'm trying to figure out. I have a docker container my-container running on a node. Inside this container is a…
Ruairios
  • 328
  • 1
  • 9
0
votes
1 answer

Error while pulling image: Get https://index.docker.io/v1/repositories/library/ubunut/images: on server misbehaving

I have deployed minikube using the following link https://gist.github.com/edrex/b54023fc9dbe8d21c0c81f5cce523ede in My local machine and when i try to build a docker image using docker build -t hello-node:v1 . as per this link…
user3398900
  • 795
  • 2
  • 13
  • 31
0
votes
2 answers

Execute a simple java application using Docker

new for docker implementation, trying after R&D. TASK TO BE ACHIEVED :- To run the docker after a scheduled time (i.e 5 min) through writing CRON. I have written a simple java application which just contain a println statement. I want to execute the…
vartika
  • 33
  • 6
0
votes
0 answers

Dockerfile's RUN command - operation not permitted

I am trying to run 'ip link add ...' from Dockerfiles's RUN command and getting 'RTNETLINK answers: Operation not permitted' error. When running a container I can use --cap-add=NET_ADMIN for that, but what about the build command - how do I do this?…
rincewind
  • 1,103
  • 8
  • 29
0
votes
2 answers

Build docker image including version with bitbucket pipelines

I'm pretty new to Bitbucket Pipelines and I encountered a problem. I'm creating a pipeline to deploy a new version of our Spring Boot application (which runs in a Kubernetes cluster) to our test environment. The problem I encountered is the…
0
votes
3 answers

FROM requires one or three arguments Docker

I run docker build -t imagename . I get the following error : Step 1/1 : FROM ubuntu:14.04 ENV MAVEN_VERSION 3.3.9 RUN mkdir -p /usr/share/maven \ && curl -fsSL…
papaya
  • 1,505
  • 1
  • 13
  • 26
0
votes
1 answer

dockerfile COPY from previous build fails

I'm using a multi-stage builds within my dokcerfile according to docker docs: FROM node:8 as build WORKDIR /usr/src/app COPY package.json yarn.lock ./ RUN yarn COPY . ./ RUN REACT_APP_BACKEND_BASE_URL=http://localhost:8010 yarn build FROM…
Crixo
  • 3,060
  • 1
  • 24
  • 32
0
votes
2 answers

SSL certificates or other files not showing in Docker file structure

I have a Docker build for Gitlab, I created some ssl certificates and other files I need to pull in. However when I exec into the container bash the files are not visible. gitlab: image: 'gitlab/gitlab-ce:9.1.0-ce.0' restart: always hostname:…
NicholasByDesign
  • 781
  • 1
  • 11
  • 33
0
votes
0 answers

Docker Copy seems buggy

So I am trying to make a simple docker container to run sabnzbd in a container. I do a git clone and then move sabnzbd folder into container. Note: When I look in sabnzbd, all files look ok so it's not a git problem or branch etc. I'm happy so far…
0
votes
2 answers

How to use the environment variables of docker machine when building a Dockerfile

When creating a new image my Dockerfile needs to call npm install. This needs to work behind a proxy as well. At this point the following Dockerfile code works: # Set proxy server ENV http_proxy http://myproxy.example ENV https_proxy…
Habba
  • 475
  • 2
  • 5
  • 15
0
votes
1 answer

Build docker image with python application using PyQt4 library

I am trying to dockerise a small python application. The python code uses the PyQt4 library. The app has some test units which I run when I build the image. Something like the following: RUN [ "/bin/bash", "-c", "source activate conda_environment &&…
DarioB
  • 1,349
  • 2
  • 21
  • 44
0
votes
1 answer

Adding Custom Manifest file with Docker image/tag

Like we can add our own custom manifest file in Jar files. is there a way to add Custom Manifest in Docker images/tags. Like If I want to add all the JIRA ids fixed in a release can I add those to manifest file for that tag Thanks, Amol
Amol
  • 479
  • 5
  • 18