Tag: dockerfile

Reconstruct dockerfile from image with java docker client

I’m using docker in java code through java docker client (https://github.com/docker-java/docker-java) and I need to analyze what’s coming from docker hub by user request starting docker pull operation (it’s going to be a service running user-defined code related to computational biology in docker container on cluster remotely). I’ve found this approach based on ruby: https://github.com/CenturyLinkLabs/dockerfile-from-image/blob/master/dockerfile-from-image.rb […]

How can I write Dockerfile for Yesod? “RUN yesod init -n myApp -d postgresql” didn't work as expected

I tried to make a simple application with Yesod and PostgreSQL using Docker Compose but RUN yesod init -n myApp -d postgresql didn’t seem to work as expected. I defined Dockerfile and docker-compose.yml as below: Dockerfile: FROM shuny/ghc-7.8.4:latest MAINTAINER shuny # Create default config RUN cabal update # Add stackage remote repo RUN sed -i […]

Dockerfile privileged flag for Docker container (Needed because of Apache error ulimit ) AWS

I would like to start a container with privileges. Manually I can do that directly by typing: sudo docker run -privileged name/image But how can I generated a container from a Dockerfile with privileges, is there any command to do that in the dockerfile? In my case I am doing a deployment in amazon, in […]

Can't figure out how I have to build my Docker architecture

So currently I’m building an API in PHP as different (micro) services which runs on nginx. I’ve followed all the Docker fundamental video’s and went through the docs, but I still can’t figure out how to implement it. Do I need a server where I push my code to and deploy on the containers (with […]

Error Deploying Docker Container to Elastic Beanstalk

I’m using Elastic Beanstalk to deploy a Docker Image I’ve created. I created a .zip file with a Dockerfile and Dockerrun.aws.json file. When I deploy, I get the following error: [2015-11-02T18:08:30.366Z] ERROR [4515] : Command execution failed: Activity failed. (ElasticBeanstalk::ActivityFatalError) caused by: jq: error: Cannot iterate over null ab6ac43aeaf75fb000d02a1fee73e829a92cef629bad46e6b727dc967f837b54 Docker container quit unexpectedly after launch: […]

Docker – Instance method “open” is already defined in Object

I have a SpreeCommerce + rails app which I am looking to deploy to AWS using docker. The image builds fine but when I run the container it refuses to start. I get the following error: Instance method “open” is already defined in Object, use generic helper instead or set StateMachines::Machine.ignore_method_conflicts = true. App 70 […]

Error getting authority in Ubuntu SDK Docker image

I want to run the Ubuntu SDK (Qt Creator variant) from a Docker image. It’s working very nice, except when I try to use the emulator or a real phone/device. This requires to install a new Kit (armhf, i386) which fails with the following error inside a Run Click window. Error getting authority: Error initializing […]

Failed to run service inside docker container

I need to create docker container which is running Onedrive client so I can synchronize the data to my Onedrive account. This is the project that I’ve created https://github.com/rischanlab/onedrive-ubuntu-docker I created a Makefile, by that file we can make command easily. This is the example of my Makefile shell: @echo @echo “——————————————————————” @echo “Shelling in […]

apt-get update is not working inside docker container

I have created the container using the ubuntu:14.04. I have set proxies in the docker file configuration. When i start the conatiner and type command apt-get update it is giving me error. root@4a7043e2f675:/# apt-get update 0% [Connecting to archive.ubuntu.com] will stuck here and after for a while gives error as follow : Err http://archive.ubuntu.com trusty […]

Unable to find ssh key using phusion/base-image

I m actually using Docker with phusion/baseimage and I need to connect through ssh. In the github repository (https://github.com/phusion/baseimage-docker), at the bottom it’s written that, to use our custom public key, we had to do the following : ## Install an SSH of your choice. ADD your_key.pub /tmp/your_key.pub RUN cat /tmp/your_key.pub >> /root/.ssh/authorized_keys && rm […]

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