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

how to connect docker-machine to my VMs docker-daemon port?

Given these two systems: VM#1 running a jenkins-container which has a installed/working docker-machine VM#2 running a plain ubuntu with docker-engine installed Both VMs are connected via a networkbridge. I can curl for the Docker-Host on VM#2 out…
xetra11
  • 7,671
  • 14
  • 84
  • 159
0
votes
1 answer

docker add command fails to add the path passed as argument to it

I have a Dockerfile which I want to be built and pushed after jenkins maven build. I have these lines in my Dockerfile: ... ARG MAIN_DIR ADD $MAIN_DIR . ... And I pass MAIN_DIR argument as follows: docker build -t…
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
0
votes
1 answer

Docker Build with ARG not passing

Docker file: # copy over system jboss configs ARG SYSTEM_TYPE COPY $SYSTEM_TYPE/AP/standalone.conf $JBOSS_HOME/bin/standalone.conf COPY $SYSTEM_TYPE/AP/standalone-ha-bob.xml $JBOSS_HOME/bin/standalone-ha-bob.xml Docker Command: docker…
RichW
  • 68
  • 7
0
votes
1 answer

Can't manage to build and run a bottle.py app

I've been trying to setup a container to run an app with the bottle framework. Read everything I could find about it, but even so I can't do it. Here's what I did: Dockerfile: # Use an official Python runtime as a parent image FROM python:2.7 #…
Luís Alves
  • 463
  • 1
  • 5
  • 20
0
votes
1 answer

`docker build` fails trying to install ubuntu packages

Trying to build a simple ubuntu apache web server docker image, I get an error while the docker build command tries installing packages. I am using the Ubuntu base image in Docker to do this. Below is the code in my Dockerfile; FROM ubuntu RUN…
Derick Alangi
  • 1,080
  • 1
  • 11
  • 31
0
votes
1 answer

Docker flow for updating images with latest version of application

Our production/staging docker image build pulls the latest code from our repository and then it installs all required dependencies, this process takes a while. This is why for development we are using a volume to map the application code to a local…
ZaphodBBx
  • 111
  • 1
  • 9
0
votes
1 answer

Build Docker image from GitHub repository

I'm trying to build docker image from a GitHub repository using docker api python client. Here's what I have tried: From views.py if request.method == 'POST': post_data = request.POST.copy() post_data.update({'user':…
Abdul Rehman
  • 5,326
  • 9
  • 77
  • 150
0
votes
1 answer

Docker build (MacOS vs Ubuntu)

On a Mac OSX, it's possible to do this to build the docker image from a Dockerfile: docker build -f Dockerfile . And on a Debian/Ubuntu, the above doesn't work, it just hangs there. docker build - < Dockerfile But Mac OSX can take both syntax. Why…
alvas
  • 115,346
  • 109
  • 446
  • 738
0
votes
0 answers

docker repository and tag comes up with

I'm trying to build docker image from github. I'm running the following command to build the image. docker build -t test1:latest https://github.com/syndy1989/Accessibility.git i get shown the below error: PS C:\Users\Administrator> docker build -t…
syndy1989
  • 403
  • 10
  • 25
0
votes
2 answers

Jenkins: Pipeline Docker Job with Jenkins file - Docker groovy syntax

I'm an issue finding any proper example of how to build, register, and run a docker image via a jenkinsfile for a Pipeline job. Here is what I have so far: node { def myService stage('Checkout Project') { checkout scm } …
Joseph Freeman
  • 1,644
  • 4
  • 24
  • 43
0
votes
0 answers

Docker Build: Missing Dependency

When my Docker build reaches this part of the Dockerfile: ARG cabal=1.22.9.0 RUN curl -L http://hackage.haskell.org/package/cabal-install-${cabal}/cabal-install-${cabal}.tar.gz | tar -xzf- && \ cd cabal-install-${cabal} && \ …
0
votes
0 answers

how to build docker image via php system()

I am working to build a docker machine via php system method() its goes to 504 page. i have increased fastcgi_read_timeout size 300 to 6000 and max_execution_time size 300 to 3000. Stil goes to 504 page. my code: mybuild.php $docker_pull =…
Rajkumar .E
  • 1,440
  • 3
  • 20
  • 34
0
votes
1 answer

Building software for/in Docker containers - how to manage?

Say I want to integrate the latest version of AwesomeTool into a docker container (say running CentOS), for which there is no RPM available in any repo (or the rpm is not up to date and I want to run the latest version). So I download…
aaa90210
  • 11,295
  • 13
  • 51
  • 88
0
votes
2 answers

Unable to Make a development environment image for Docker opensource development

I am trying to Make a development environment image for Docker opensource development, but I am facing the following Error. I have cloned the repository from their git page and running it on centos. I am working in a company and have set the proxy…
Kunal Sehegal
  • 991
  • 1
  • 6
  • 5
0
votes
1 answer

docker build giving unauthorized: authentication required

My docker version is Docker version 1.12.2-cs2-ws-beta, build 050b611 I am trying to build the image using command docker build -t iis-dockerfile . The DockerFile content is FROM microsoft/iss RUN echo "Hello World - Dockerfile" >…
Jitendra
  • 732
  • 1
  • 9
  • 29