Tag: amazon web services

Framework auto-scale container docker on AWS

Is there any framework that creates auto-scale container docker on AWS? For example: I have a WordPress application, and based on HTTP requests, automatically create a new instance of docker. Is possible? How? I do not want to use auto-scale policy based threshold (cpu, and ram usage …) Already researched the Kubernetes, Mesos and Deis […]

Can't connect to Amazon RDS from Docker container

I’ve created a Docker container which is running fine, except the part where I want to connect to an Amazon RDS instance. I can connect fine from my MySQL Client and the RDS instance is running fine. Somehow I can’t connect from my Docker Container. I get the following error: SQLSTATE[HY000] [2005] Unknown MySQL server […]

Can't access docker image from EC2 server

I’ve got a standard EC2 Ubuntu server running a basic LAMP stack. I’ve installed Docker and I’m trying to hook up a solr container (https://github.com/makuk66/docker-solr specificly). I have the docker image running ce32c020e7da makuk66/docker-solr “/bin/bash -c ‘/opt/ 10 minutes ago Up 10 minutes>8983/tcp solr5 According to the readme of the solr image I should […]

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

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