Tag: docker

docker api, attaching container returns extra characters

I’m consuming docker api from javascript in the browser, I start one container that executes ‘composer install’ command then I attach to it to get the output. Everything works but I get some extra characters at the beginning of each line -Installing assets using the hard copy option PInstalling assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework BInstalling […]

etcd api on CoreOS – setting ip address configurations remotely

I am attempting to use etcd‘s remote api to configure a coreOS box remotely with static values like ip address, dns resolve address, gateway, ect. I theory I should be able to file something like: curl -X PUT “http://xxx.xxx.xxx.xxx:4001/v2/keys/etcd/registry/???_/_state?prevExist=false” -d value= But i can’t find a reference to the exact syntax to use.

Postgres Docker – unable to connect from remote server

I am using postgres:9.5.3 docker image. I am starting the containers and then trying to connect to the psql database from a remote host but each time it fails with the error: psql: could not connect to server: Connection refused Is the server running on host “” and accepting TCP/IP connections on port 5432? In […]

Docker client not working under ubuntu 12.04.4

Followed the instructions of installing docker (0.0.9) under ubuntu server 12.04 but every time I run any docker subcommands I got: read unix /var/run/docker.sock: connection reset by peer it happens with docker ps, docker info, etc, running: service docker status reports that docker daemon is running, I have defaults everywhere on a clean 12.04 server […]

Can’t push to docker hub (authentication required)

I’ve just installed Docker on Windows 10 few days ago. Seems I am able to login to my Docker Hub repo (by entering winpty docker login in my git-bash on windows). It says “Login succeded”. But after I try to push (docker push myrepo/myproject:sometag) it says finally “authentication required”. I’ve googled and researched yesterday whole […]

Can docker use the existing host system to run a command in isolation like lxc-execute

A lot of the docker examples I have seen involve images of an os, albeit proably a stripped down version. If you have an existing RHEL system with lxc you can just execute a containerized bash. Can docker do something similar or do you always need base images that are unrelated to the host OS.

Moving to Docker From SVN

We are currently using SVN for our application development among 6 to 8 developers. Recently we have requirement for developing a new application using Docker. I have gone through the docker setup documentation and difference between containers and images and how it works.I am bit confused how to use this for a application where team […]

How copy files from current docker container to another container

I am building a docker container with a nodejs application, which will be build from meteorJS. For the build a shell runner is used (`meteor build /opt/project/build/core –directory) as this is all done in a gitlab CI. build: stage: build tags: – deploy before_script: – docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY – meteor npm […]

Identify overlay networks from the inside of the container

I have a process inside my docker container that is attached to multiple overlay networks and it must only bind to a specific overlay network interface (it knows its name through passed env vars) so that the rest of the containers in that overlay network would be able to talk to it. How can a […]

dockerfile: not able to run command

Docker version 1.0.1, build 990021a I am trying to run following command in via dockerfile and seeing error FROM centos:6 MAINTAINER averma <some@somemail.com> RUN yum -y install wget svn WORKDIR /usr/local/src RUN rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt RUN wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm RUN rpm -Uhv rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm RUN yum -y install java-1.6.0-openjdk.x86_64 RUN mkdir -p /u001/tomcat-apps/ ENV PATH /u001/tomcat-apps RUN […]

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