Category: Docker

Docker Technology Fans

How do I get Apache and tomcat docker containers to talk to each other?

I am a total newb at this and I want to learn. I have a webapp running in a docker container currently on Ubuntu 16.04TLS. I can connect to it over the Internet and it works fine. I want to run an Apache frontend in a separate container and enable SSL. I worked on this […]

nginx hangs serving video via proxy

I’m using nginx–proxy to route traffic to the staging & live environments of a Dockerised site, all running on the same host machine. Some additional nginx config for those proxied vhosts routes static files to an S3 bucket. All is working ok, except for video files. The request simply “hangs”, I don’t get any response, […]

ansible – define var's value depending on another variable

today I have a loop that allows me to start multiple docker containers – name: start container current docker_container: name: “{{ }}” image: “{{ }}:{{ item.version }}” state: started recreate: true ports: – “{{ item.ports }}” volumes: – /opt/application/i99/{{ item.type }}/logs:/opt/application/i99/{{ item.type }}/logs env_file: /opt/application/i99/{{ item.type }}/{{ }}/{{ }}-PreProd-config.list env: LOG_FILE_WS: […]

Is “args” in Mesosphere equivalent with environment variables in docker run command?

I have a json template for micro service to deploy using Mesosphere: { “id”: “service”, “container”: { “docker”: { “image”: “foo/foo:latest” }, “type”: “DOCKER”, “volumes”: [] }, “args”: [ “–key”, “value” ], “cpus”: 0.5, “mem”: 128.0, “instances”: 1 } But for reasons, I want to manually do docker run command to deploy this container. Here’s […]

How can I extend unregistered docker images or dockerfiles?

Or maybe instead of using FROM there is a way to inject the contents of another dockerfile into the start of my own.

How to save transfer cache to a different host from a docker-compose build

When I do a “docker-compose build” it takes like 30m to complete. When I re-run “docker-compose build” everything is cached and it takes like 1m to complete. I want to transfer this cache to another machine. I thought I could iterate over all images in “docker images” and “docker save” them, and then simply copy […]

Docker on windows 7: hello-world runs on Docker Quickstart Terminal but not on command prompt. why?

I haven’t been able to run hello-world on command prompt but on quickstart terminal it works. Why is that? Error message on command prompt: In a broader context, I am trying to run Docker compose to set up a network but unsuccessful. So I figure understanding more about Docker would be helpful. Appreciate any […]

Unable to connect with container running in multiple host (Destination Host unreachable) [closed]

I am trying to perform docker multi host networking without swarm and using consul. Please find the machine and docker details below, cat /etc/redhat-release : CentOS Linux release 7.3.1611 (Core) uname -r : 3.10.0-327.18.2.el7.x86_64 $docker info Containers: 6 Running: 0 Paused: 0 Stopped: 6 Images: 6 Server Version: 17.06.0-ce Storage Driver: overlay Backing Filesystem: xfs […]

ListenAndServe returns net.DNSError “nodename nor servname provided”

I am trying to write a go http server but I have an issue when I try to listen to incoming connections. HW setup: MacOS Sierra 10.12.4, docker 17.03 I have a yml file that will open a . phpmyadmin and sql: mysql: extends: service: mysql-5.7 ports: – “3306:3306” phpmyadmin: image: phpmyadmin/phpmyadmin:latest links: – “mysql:db” […]

How to create new databases and collections when using MongoDB with Docker?

I’m pretty new with Dockers and now practiced with initializing new MongoDB container using docker-compose. I’ve learned that inserting environment variables into the Dockerfile will create for me an admin user and set a password. I also found that I can pass the docker a js file that will process some commands and create for […]

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