Tag: dockerfile

Add Image to my Base Docker Image

I have a docker base image that runs CentOS 6.5. This image is saved on my computer. I could not find anything that talks about how to add more images into this base image. So for example I have this base image of CentOS6.5, I need too add postgresql 9.3, and php too this base […]

Changing tomcat port in Dockerfile

I am creating a Docker image using dockerfile build, where my base image is Tomcat 8.0:jre8. Now in the dockerfile I want to specify a custom port instead of 8080 and expose a custom port outside the docker container. Can anyone guide me how this can be done?

Job tracker is not starting up

I am installing CDH4.6.0 with the help of this site I am running start-all.sh to start services. /etc/init.d/hadoop-hdfs-namenode start /etc/init.d/hadoop-hdfs-datanode start /etc/init.d/hadoop-hdfs-secondarynamenode start /etc/init.d/hadoop-0.20-mapreduce-jobtracker start /etc/init.d/hadoop-0.20-mapreduce-tasktracker start bin/bash [to start bash prompt after starting services] After executing these instructions as a part of docker file, like CMD [“start-all.sh”] It starts all the services When i […]

What should a dockerfile contain to run a simple CRUD web application?

I am studying Docker and to understand better, I want to use it to run a Java web application that I created a while ago. It uses Java, Spring, Hibernate on back-end and Spring MVC on front-end, and MySQL as a database. In Eclipse, it can be easily run on Tomcat and opened in a […]

when mounting a host directory -v option. Are the mounts available by the time the ENTRYPOINT starts?

I have a Dockerfile as follows FROM rajenata/ovs MAINTAINER Rajesh Nataraja <…> COPY initovs /sbin/ ENTRYPOINT [“/sbin/initovs”] CMD [“–help” Then I execute docker run -d rajenata/ovs:2 –net=host –privileged -v /etc/openvswitch:/etc/openvswitch But the initovs script #!/bin/bash if [ -d “/etc/openvswitch” ]; then if [ -f “/etc/openvswitch/conf.db” ]; then echo “DB Exists No Need to Create” else […]

Move file downloaded in Dockerfile to harddrive

First off, I really lack a lot of knowledge regarding Docker itself and its structure. I know that it’d be way more beneficial to learn the basics first, but I do require this to work in order to move on to other things for now. So within a Dockerfile I installed wget & used it […]

Building from one image and adding dependency to another

Setting I am building a machine learning project using Docker and I would like to use anaconda as my base. However this project also requires bamos/openface, and I would like to link to my project using docker-compose. Problem I do not know how to link the openface dependency. Right now I am actually building FROM […]

How to run a CMD and open Bash when running a docker container?

I am having a rough time trying to figure this out. So I have a dockerfile based on an Ubuntu image. At the end of my dockerfile I have: CMD django-admin startproject $PROJECTNAME I was told in a previous post that the base Ubuntu image has a CMD to run /bin/bash so my command is […]

Docker image behaves different on different machines

I generated a Docker image that behaves differently on different machines. Something I thought isn’t possible with Docker. But let me explain: My plan is to generate a dashing based Docker image which I upload to an ec2 instance and then start it there. In the Dockerfile (see below) I create a new dashing instance […]

Dockerfile for Rails app – Permission Denied

I am attempting to create a docker image of a rails app using rvm (as non-root) and am running into permission errors: Dockerfile: FROM ubuntu RUN apt-get update -q RUN apt-get install -qy curl RUN apt-get install -y libpq-dev RUN apt-get install -y imagemagick –fix-missing RUN apt-get install -y curl patch gawk g++ gcc make […]

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