spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
  Home » DOCKER » Page 1
Kubernetes configuration to link containers
You have to use the Kubernetes service (Proxy) https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/services.md#how-do-they-work. Have a look how they work togehter: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/guestbook To be specific, there is no concept of "linking" similarly to the way Docker does it. Every service endpoint is a fully qualified domain

Categories : Docker

Creating a Private Docker Registry with Authentication
Ok, so it turns out simply telling docker to use HTTPS isn't enough, you have to force it. To do so I added redirect scheme https if !{ ssl_fc } domain to my frontend to redirect HTTP traffic to HTTPS which stopped the above errors from occurring.

Categories : Docker

In a Dockerfile, How to update PATH environment variable?
Although the answer that Gunter posted was correct, it is not different than what I already had posted. The problem was not the ENV directive, but the subsequent instruction RUN export $PATH There's no need to export the environment variables, once you have declared them via ENV in your Dockerfile. As soon as the RUN export ... lines were removed, my image was built successfully

Categories : Docker

Java application cannot get IP address of the host in docker container with static IP
The documentation for InetAddress.getLocalHost() says: Returns the address of the local host. This is achieved by retrieving the name of the host from the system, then resolving that name into an InetAddress. Since you didn't take any steps to make your static IP address resolvable inside the container, it doesn't work. To find the address in Java without going via hostname you could enumer

Categories : Docker

Link docker container with host
The easiest thing to do would be using --net=host. That effectively puts the container in the host network (which may not be what you want). Another option would be to talk to the docker host interface. DOCKER_HOST=`ip route show | grep ^default | awk '{print $3}'` should figure out the IP of the host inside the container. The latter assumes that the host service listens on that (or all) host i

Categories : Docker

etcd api on CoreOS - setting ip address configurations remotely
etcd doesn't handle configuration of the host system. It is a distributed key / value store. It can certainly store configuration for applications and maybe even the host. But you have need some other tool to pull the data from the store and transform it into configuration that the application or host recognizes. The application I use to do this inside Docker containers is confd (https://github.co

Categories : Docker

How can I mount a user's existing .ssh directory into a Docker container?
Slightly kludgy, but you could copy the .ssh files into a new directory and chmod them, in the startup of the shell. I.e. give the container the SSH files via a volume, but use the shell ~/.profile to copy them to ~/.ssh.

Categories : Docker

How to include files outside of Docker's build context?
If you read the discussion in the issue 2745 not only docker may never support symlinks they may never support adding files outside your context. Seems to be a design philosophy that files that go into docker build should explicitly be part of its context or be from a URL where it is presumably deployed too with a fixed version so that the build is repeatable with well known URLs or files shipped

Categories : Docker

Can docker containers share a directory amongst them
You can mount the same host directory to both containers docker run -v /host/shared:/mnt/shared ... or use docker run --volumes-from=some_container to mount a volume from another container.

Categories : Docker

docker linking how can both containers know each others ip
To find one container from another, you can use a 'service discovery' mechanism such as SkyDock. Skydock - Automagic Service Discovery for Docker Skydock monitors docker events when containers start, stop, die, kill, etc and inserts records into a dynamic DNS server skydns. This allows standard DNS queries for services running inside docker containers. For the more complex case where y

Categories : Docker

Docker (under boot2docker) does not look for/find local images when building
Uhhh, ok... It seems I have to include the tag, i.e. FROM oceania/python:0.1 ...then it works. The docs appear to allow a FROM directive without the tag, and they say: "If no tag is given to the FROM instruction, latest is assumed." I guess the underlying problem is that if your image is not uploaded to an index somewhere then it can't resolve 'latest' to a tag. Another thing that's confusi

Categories : Docker

Canonical Way to Connect to Service on Host from Docker Container
Unless you have something like a firewall blocking it (as the question you refer to did), you just connect to it as if you were on another machine. Your container will have its own IP address and virtual Ethernet device; Docker will have set up a route from that device over the Docker bridge to the host; it should all work fine. I could think of a dozen other reasons for you to have trouble, but

Categories : Docker

How to combine docker images to support python application
You will only have two containers. Both your database and python app presumably need a Linux OS of one flavor or another. In your docker file you would start with something like with ubuntu to pull in a base image and make your changes. Using the diff based file system your changes will be layered on top of the base image.

Categories : Docker

How to deploy app in this meteor docker image?
I'm not really sure what you mean to do with your command docker run -i -t ulexus/meteor /bin/bash because with the -i, -t and /bin/bash at the end, this just starts the image and runs an interactive bash session. How does this create the main.js error? What does your Dockerfile look like? I use the following command to run a test-server that starts a simple sshd process: docker run -p 22:22 --rm=

Categories : Docker

Docker External File Access Not in /Users/ on OSX
As boot2docker now includes VirtualBox Guest Additions, you can now share folders on the host computer (OSX) with guest operating systems (boot2docker-vm). /Users/ is automatically mounted but you can mount/share custom folders. In your host console (OSX) : $ vboxmanage sharedfolder add "boot2docker-vm" --name settings-share --hostpath /etc/settings --automount Start boot2docker and ssh in

Categories : Docker


Recently Add
Howto modify an docker image that was created from an existing one
Kubernetes configuration to link containers
Creating a Private Docker Registry with Authentication
In a Dockerfile, How to update PATH environment variable?
Java application cannot get IP address of the host in docker container with static IP
Link docker container with host
etcd api on CoreOS - setting ip address configurations remotely
How can I mount a user's existing .ssh directory into a Docker container?
How to include files outside of Docker's build context?
Can docker containers share a directory amongst them
docker linking how can both containers know each others ip
Docker (under boot2docker) does not look for/find local images when building
Canonical Way to Connect to Service on Host from Docker Container
How to combine docker images to support python application
How to deploy app in this meteor docker image?
Docker External File Access Not in /Users/ on OSX
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.