Tag: linux

dockerfile – Unable to connect error

So here’s what i have to do: i need to set up some containers automatically using docker. One of them is liek this: Debian Squeeze with limited CPU shares and limited memory (1 cpu share and 512 mb memory),preinstalled apache2,build-essential,php5,mysql-server-5.5,openssh-server and with some ports opened (8000 for Apache and 1500 for MySQL). So i created […]

Bash script behaves differently from Docker run command instead of inside container itself?

I am running the Docker 1.0.1 client on Ubuntu 12.0.4 LTS. I have a container that runs a Java application in server mode. There is a Bash script in the container that launches the server. If I execute the bash script from inside the container’s the Java application runs fine. If I append the bash […]

Docker container not showing volume mounted – Access issue

root@centdev01$ grep -e CMD -e RUN Dockerfile RUN apt-get update RUN apt-get -y install ruby ruby-dev build-essential redis-tools RUN gem install –no-rdoc –no-ri sinatra json redis RUN mkdir -p /opt/webapp RUN chmod 777 /opt/webapp CMD [“/opt/webapp/bin/webapp”] root@centdev01$ docker build -t “alok87/sinatra” . root@centdev01$ docker run -d -p 80 –name ubunsin10 -v $PWD/webapp:/opt/webapp alok87/sinatra 25ekgjalgjal25rkg root@centdev01$ […]

Thousands of cAdvisor Docker containers created until disk runs out of space

Google Compute Engine container-optimized VM image has a built-in cAdvisor container that gets started automatically. In the last three days, an infinite loop started to create ~15000 containers of the cAdvisor image until the disk ran out of space. The versions are: Linux docker-04 3.16-0.bpo.2-amd64 #1 SMP Debian 3.16.3-2~bpo70+1 (2014-09-21) x86_64 Docker version 1.2.0, build […]

Does Docker purge old/unused images?

Many organizations are using Docker specifically for the advantage of being able to seamlessly roll back deployed software. For instance, given an image called newapi, deployment looks like this: # fetch latest docker pull newapi:latest # stop old one and terminate it docker stop -t 10 newapi-container docker rm -f newapi-container # start new one […]

Securty options in embeded linux?

I am working on an embedded Linux platform. In our platform there is only root user. Now we want to bring in security options like 1. Low Privileged user. 2. Allowing to run only executables from a particular location(only read permission). 3. Use Linux Containers We have managed to add a low privileged user using […]

Is it possible running docker on big endian, arm32, linux=2.6.34?

I want to run docker on big endian, arm32, linux system. It seems it is impossible download directly. So can I compile docker from source to big endian?

Unable to enter Docker container on remote Linux box with procedure that works fine on local box?

I have nsenter set up on my local and remote Linux boxes. The remote box is a hosted virtual machine. The local box is a computer in my office. Both are running Ubuntu 12.0.4 LTS server version and both of them have the kernel patch to support docker. My local box is running Docker 1.0.1, […]

ASP.NET 5 and Docker error: /bin/sh: [dnx,: command not found

When I try to get a sample ASP.NET 5 beta5 application up and running on Docker, I am getting the following error on sudo docker start -a 2c1bec440dbc command: /bin/sh: [dnx,: command not found This is my docker file: FROM microsoft/aspnet COPY ./HelloWeb /app WORKDIR /app RUN [“dnu”, “restore”] EXPOSE 5004 ENTRYPOINT [“dnx”, “.” “web”] […]

Bash script wait depended commands processes

I am fairly new in bash scripting. I need to use bash script for manage my microservices, so these services need build and deploy(on docker). So I have commands like that : #!/bin/bash mvn clean wait $! mvn package wait $! #Some if elses here sudo docker build -t myService . & wait $! #Some […]

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