Tag: amazon web services

Amazon EC2 boot time

Our web app performs a random number of tasks for a user initiated action. We have built a small system where a master server calculates the number of worker servers that are needed to complete the task, and the same number of EC2 instances are “Turned On” which pick up the tasks and perform the […]

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 […]

Opening a port from a docker container on AWS to the rest of the world

I’m trying to host a python HTTPS server on Amazon Web Services using Docker. The application “application.py” works well when executed on my local computer on the arbitrary port 8012. The problem is that the required port is not open when I try to run the same application remotely. Here are the configuration files: Dockerfile […]

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: […]

Nginx Docker build failing on Ubuntu

My Docker build is failing: sudo docker build -t nginx_img_1 . W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found [IP: 80] W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring/universe/binary-amd64/Packages 404 Not Found [IP: 80] Why is this not working? I cannot find the correct location on the http://archive.ubuntu.com/ubuntu/dists/ website. When I google for binary-amd64 site: archive.ubuntu.com, […]

How to periodically run a script inside a fresh Docker container on Amazon AWS?

I have a Docker image for a web app which needs a specific script to be run once a day. The web app is going to be deployed to a web tier in Elastic Beanstalk. What would be the best way to create a container for this image in order to run the script and […]

How to deploy django 1.8 on Elastic Beanstalk using Docker

My restrictions are: Django is to be deployed using uWSGI with nginx Django app is to use postgresql that is hosted on RDS the dockerfile will use ubuntu:14.04 as the container OS This is what I have for docker setup: https://github.com/simkimsia/aws-docker-django It contains a dockerfile and other configuration files. I have tested it on linux […]

Persistent mysql data from docker container

How can I persist data from my mysql container? I’d really like to mount /var/lib/mysql from the container to the host machine. This indeed creates the directory, but when I create data, stop my application, and start a new one with the mounted directory, nothing is there. I’ve messed around with giving the directory all […]

nodejs, docker, nginx and amazon aws deployment

There have been many questions regarding docker, node and amazon aws and I have read most of them but I haven’t got my answer. I have been working on a production node.js API project for last some weeks and now that the API’s are complete I have to deploy them. There are a total of […]

Deploy Docker container using Kubernetes

I’m learning about Kubernetes because it’s a very useful tool to manage and deploy container. So My question is: For example i have 2 instances Amazon EC2 called Kube1 and Kube2. So on Kube1 i create some container using Docker and deploy wordpress successfully. Now i want to make a cluster between Kube1 and Kube2 […]

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