Tag: dockerfile

My build does not include my web site directive

I’m not sure where I went off of the rails but I am trying to create a container for my web site. First I start off with a file called ‘default’: server { root /var/www; index index.html; location / { try_files $uri $uri/ /index.html; } } var/www/ points to my web content with index.html being […]

docker CMD run supervisord in background

is there any way to run supervisord in the background. means start the process and get out of shell. I have a docker file where i try to run a script that suppose to start the postgresql and then get out. so I have a process running and i can create users. Docker command CMD […]

Creating demo Data to all apps and keeping it in Dockerfile

# Config files COPY config /actinbox_config/ COPY script /actinbox_script/ COPY database /actinbox_db/ # Config pyenv RUN echo ‘export PYENV_ROOT=”/root/.pyenv”‘ >> /root/.bashrc && \ echo ‘export PATH=”$PYENV_ROOT/bin:$PATH”‘ >> /root/.bashrc && \ echo ‘eval “$(pyenv init -)”‘ >> /root/.bashrc && \ # Config Nginx rm /etc/nginx/sites-enabled/default && \ ln -s /actinbox_config/actinbox.conf /etc/nginx/sites-enabled/actinbox.conf && \ # Config PostgreSQL […]

Create base docker centos image with python 2.7.8

I’ve found this which walks you through creating a base bare-metal centos image. I want to however install some additional yum packages, download Python 2.7.8 and build it. I had this in a dockerfile and already working like: # Set the base image to Ubuntu FROM centos:7 # File Author / Maintainer MAINTAINER Sam Mohamed […]

Dockerizing java app

I’m a beginner in docker and I have one question. I have downloaded boot2docker which is running on oracle virtual box. When I did ssh on boot2docker and created a directory where I keep my simple app in java (file with code with .java extension is enough? ). How should I include that directory in […]

Docker nginx container exists instantly

I want to have some control over the official nginx image, so I wrote my own Dockerfile that adds some extra funtionality to it. The file has the following contents: FROM nginx RUN mkdir /var/www/html COPY nginx/config/global.conf /etc/nginx/conf.d/ COPY nginx/config/nginx.conf /etc/nginx/nginx.conf When I build this image and create a container of the image using this […]

Running apache on docker with Dockerfile in windows boot2docker

I created the Dockerfile below and I tried to build the docker file but it’s stop in Step 7 with below issue. FROM fedora:20 RUN yum -y update; yum clean all RUN yum -y install httpd; yum clean all RUN mkdir -p /var/www/html RUN mkdir -p /var/log/httpd RUN mkdir -p /bin/httpd-run # Create Apache test […]

Add xvfb screen to docker image permanently.

I need permanently mount screen by Xvfb to docker image file. I found one solution, but it does not fully satisfy me, I want to have cleaner file and no log messages from xvfb in terminal. ENV DISPLAY=:1.0 CMD export DISPLAY And this should be the last line of dockerfile or screen willn’t be mounted: […]

Can not delete a docker image because repository is missing

I am not able to delete a docker image library/memcached with tag 1.4.22. There are only three versions available for library/memcached on dockerhub:1.4.24, 1.4 and 1. When I try to delete it, it throws an error repository not found. Since its not a locally created image removing everything from /var/lib/docker also did not help. I […]

Automated Build – image without source files

I would like to create a docker image through Automated build on GitHub commit. My project structure /src /build project.json Gruntfile Dockerfile To build the project I have to: npm install grunt release How can I configure Docker Hub to perform the build and create an image based on build folder (without sources)

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