Tag: dockerfile

Is it possible to execute CMD at the middle of docker file?

I am installing hadoop-0.20.2 using docker. I have two files one is for java installation and another is for hadoop installation. I am starting services using CMD command cmd [“path/to/start-all.sh”] Now, i want to to write third dockerfile which executes an example Map-Reduce job. But the problem is Third docker file depends on second hadoop-docker […]

How to get Clojure Compojure app to run headless via compiled jar within Docker container?

Update: this question has changed since the original set of commenters left responses. Apologies for any confusion. This is my code repository https://github.com/Integralist/spurious-clojure-example you can use it as an example for what I’m working with. Note that the above repo relies on a library I’ve not yet published to Clojars (as I’m still testing it […]

docker images are stored in root user thus consuming my disk space

Hi my server is configured such that the free space for root user in it is very less. However the user created(suppose user1) has lot of space. The docker images which are getting created by docker are saved in the root user thus consuming space and making my jobs to fail.How can i make docker […]

Docker building an image for ELK stack

I’m new to Docker Installed the docker on ubuntu 12.04.Now I want to install ELK(Elastic search,Logstash and Kibana) on Single container.How can I go with?Any suggestions.

wildfly docker image authentication issue

I’ve followed the instructions on the following link: WildFly Docker image in the section Extending the image However, after I make the build, when I go to the URL http://localhost:9990, I have the following message: The management interface could not be loaded. Authentication required.

How to use env var in WORKDIR stanza?

I have a pretty slim Dockerfile so far: FROM ubuntu:trusty ENV MYPACKAGE_VERSION 0.1.2 ADD mypackage-${MYPACKAGE_VERSION}.tar.gz /root/ WORKDIR /root/mypackage-${MYPACKAGE_VERSION}/ The .tar.gz gets properly added to the docker file, (it is automatically extracted which is frustrating as that may not be desirable at all times). so on the image the path /root/mypackage-0.1.2/ exists and contains the content […]

Error running file in Container “error when loading shared libraries” DOCKER

So I am building an image from a dockerfile, using the COPY command to copy a local file from host into my container. After the image is build I run an interactive shell, and test my file which I copied and am having an error. Here is my shell information. arcolombo@arcolombo:~/Documents/bedgraph_dockerfile$ sudo docker info Containers: […]

Docker how to run mongodb in dockerfile

I have a dockerfile that runs a maven build. I am following this guide: https://hub.docker.com/_/maven/ So far in my dockerfile I have this: FROM maven:3-jdk-8-onbuild It runs the build and fails as expected because the integration tests require that the mongodb server on the localhost is running. My question is, what do I write in […]

Setting Dynamic Env variable in Docker

I am trying to set dynamic env variable in Docker but somehow it resets. I want to set an ENV variable which has value : export EC2_Region=$(curl -s so i cant just use ENV in Dockerfile since its not static. I tried making an init.sh and used CMD[“init.sh”] in Dockerfile but when i attach […]

Run an ecosystem in docker

We are developing a fairly complex app that has a node server that talks to a CouchDB instance, another node server that talks a redis instance, a third node server that talks to both of the other node servers, and a Redis store that all three talk to. Developing locally requires installing and running CouchDB, […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.