Tag: amazon web services

List folders in Docker Elastic Beanstalk instance

I’m deploying an application to a pre-configured GlassFish Docker instance running in Elastic Beanstalk. I need to download a library file into a specific folder in the GlassFish directory. So in my Dockerfile I put: RUN curl -L -o /mysql-connector-java-5.1.34.jar https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.34/mysql-connector-java-5.1.34.jar The problem is this doesn’t place the file into the specific directory I need. […]

AWS Elastic Beanstalk Docker main command

How can we specify the command that Elastic Beanstalk must use when running a Docker image? We can specify a CMD in the Dockerfile, but let’s imagine that the image is not ours and we don’t want to change the Dockerfile…

Running a Docker container on AWS Elastic Beanstalk – 502 Bad Gateway nginx/1.6.2

I have a docker deployed on AWS Elastic Beanstalk – http://paymentsystem-env.elasticbeanstalk.com/ . The application is Java web application . It runs about one day and then I get a 502 Bad Gateway from nginx/1.6.2. \var\log\nginx\access.log & \var\log\nginx\error.log are empty. Dockerrun.aws.json : { “AWSEBDockerrunVersion”: “1”, “Image”: { “Name”: “kazenguyen/paymentsystem:v1”, “Update”: “true” }, “Ports”: [ { “ContainerPort”: […]

Moving MongoDB dbpath to an AWS EBS device

I’m using CentOS 7 via AWS. I’d like to store MongoDB data on an attached EBS instead of the default /var/lib path. However, when I edit /etc/mongod.conf to point to a new dbpath, I’m getting a permission denied error. Permissions are set correctly to mongod.mongod on the dir. What gives?

how to link two single container AWS Elastic Beanstalk environments

Multicontainer config does not work for me so – I have two docker based single container environments and need to connects them. Hosts are on the same VPC. I could imagine how to link hosts as they are on the same VPC but I have no idea how to link together those elasticbeanstalk environments as […]

running a docker loop device on aws

I’m new to aws and am having some issues with getting my mobile app back running again. Forgive me if this question seems vague. For a school project we created a mobile app on aws and deployed using docker containers (another student managed these tasks). When trying to get my own key pair to ssh […]

Multidocker environment, amazon beanstalk, mounting volumes

What I’m trying to achieve: I have a docker container which contains a CMS, that CMS has a folder named ‘assets’. I need the asset folder to be available to other containers, and also for the data to be safe from deletion when containers/images are removed. How I’ve attempted to solve it: I have read […]

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

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