Tag: amazon web services

Sharing directories in a Docker container both with a Dockerfile and after the container is running

Sharing data between a running docker container and my host (on AWS) seems overly complicated. From the docker documentation it seems as if I need to specify volumes when I start the container. I found this: https://github.com/synack/docker-rsync But this watches recursively to copy only from the host machine to the docker container I’m looking for […]

AWS Docker Golang. 'eb deploy' error

I am trying to deploy golang docker to AWS. I use predefined FROM golang:1.4.2-onbuild eb local run – works beautifully, no problem. If I zip and upload the zip file, it works on AWS no problem. …but when I try ‘eb deploy’ I keep getting this error. Any suggestion, please. Thank you. bash-3.2$ eb deploy […]

Possible to set –insecure-registry property in Docker on AWS Elastic Beanstalk

I am trying to use a private third party registry for images. For testing purposes I would like to add the –insecure-registry property to the Docker daemon inside Elastic Beanstalk. Docker on AWS Elastic Beanstalk hides all of the Docker internals. Is there a way to easily add Docker Daemon properties for Docker on AWS […]

Docker registry on EC2

While running on localhost has its uses, most people want their registry to be more widely available. To do so, the Docker engine requires you to secure it using TLS, which is conceptually very similar to configuring your web server with SSL. Get a certificate Assuming that you own the domain myregistrydomain.com, and that its […]

How do you get a VPC Endpoint to work in a Docker container?

I’m not able to get the AWS CLI to download a text file from S3 in a Docker container. There is a VPC setup with a VPC Endpoint approved on the S3 policy: { “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “DenyUnEncryptedObjectUploads”, “Effect”: “Deny”, “Principal”: “*”, “Action”: “s3:PutObject”, “Resource”: “arn:aws:s3:::secret-store/*”, “Condition”: { “StringNotEquals”: { “s3:x-amz-server-side-encryption”: “AES256” […]

AWS EB Deploy shows missing Dockerrun.aws.json after deploying

I’m trying to deploy my application to Elastic Beanstalk (running docker) but during the deploy it always fails with something like this: Activity execution failed, because: cat: /var/app/current/Dockerrun.aws.json: No such file or directory cat: /var/app/current/Dockerrun.aws.json: No such file or directory 2ba4cc7f9cb0a66db0ab1be8736ba96bffbb1c96a219cf5e888f99a964ae4f2a As far as I understand Dockerrun.aws.josn file is not required if Dockerfile is present […]

Dockerfile Script for Amazon AWS

I want to launch my Web application (Play 2.2 App) on Amazon’s Elastic Beanstalk. The Play Application is a self-contained myApp.zip archive. My Docker-Archive contains: -myApp.zip (contains the start-file under myApp.zip/myApp-1.0-SNAPSHOT/bin/myApp) -Dockerfile with the following script: FROM dockerfile/java ADD myApp-1.0-SNAPSHOT.zip /usr/local/myApp WORKDIR /usr/local/myApp RUN myApp-1.0-SNAPSHOT/bin/myApp EXPOSE 9000 I get the following error: Failed to build […]

Docker Compose env_file in Multicontainer Elastic Beanstalk

I have the following docker compose file: version: ‘2’ services: app: build: . command: > bash -cex ” export LC_ALL=C.UTF-8 export LANG=C.UTF-8 /virtualenv/bin/flask run -h 0.0.0.0 -p 5050 ” env_file: env links: – postgres ports: – 8080:8080 As you can see I’m using the env_file option to load my environment variables from the file env. […]

Terraform unable to get docker to join swarm

I’m trying to use Terraform to spin up some EC2 server which I configure Docker swarm to run on. I got all the code on this github repo. The error aws_instance.swarm-node.0 (remote-exec): Connected! aws_instance.swarm-node.0 (remote-exec): Cannot connect to the Docker daemon. Is the docker daemon running on this host? aws_instance.swarm-node.0 (remote-exec): flag needs an argument: […]

Get elastic beanstalk environment variables in docker container

So, i’m trying not to put sensitive information on the dockerfile. A logical approach is to put the creds in the ebs configuration (the GUI) as a ENV variable. However, docker build doesn’t seem to be able to access the ENV variable. Any thoughts? FROM jupyter/scipy-notebook USER root ARG AWS_ACCESS_KEY_ID RUN echo {$AWS_ACCESS_KEY_ID}

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