Tag: osx

Mounting local volumes to docker container

Edited for clarity I run the following run command docker run -d -P -v /users/username/app:/app contname This resulsts in the following when i inspect the container “HostConfig”: { “Binds”: [ “/users/username/app:/app” ], “Volumes”: { “/app”: “/users/username/app”, “/app”: “/mnt/sda1/var/lib/docker/vfs/dir/214a16c3678f93cbadb7e7b7d56b5f26b66a34c6d9bb89ade23b16e386a12212” }, But when i ssh into the container, i can see that app is empty. Is my […]

can not use rabbitmq config in docker build OS X

Initially I was setting the rabbitmq config file like this (Dockerfile): RUN echo “[{rabbit, [{loopback_users, []}]}].” > /etc/rabbitmq/rabbitmq.config But now I need to configure the shovel plugin and would like to use an actual config file from source. To start out simple, the config file only contains the loopback_users setting. Here’s the Dockerfile statements: ENV […]

Proxy in boot2docker running containers to run on port 80 and a custom host name

I’m using boot2docker to setup different Docker containers on OSX. However the URLs for the applications running in these Docker containers are accessible through the IP and port e.g. http://192.168.59.103:8080 Since the applications I’m working on are configured to run with a web server called Pow and URLs like htp://myproject.dev, I’m having trouble migration to […]

OSX docker build error Command not found: -t

This command used to work just fine a couple of days ago: docker buildĀ  -t dtwill/elasticsearch . | tee build.log Now it errors with the command not found -t. The only thing that has changed in my environment is I installed docker-py via pip. Here is the output after boot2docker starts: bash-3.2$ docker version Client […]

gitlab can not change gitlab url ,i edit config,yml , gitlab.yml

i running a default gitlab container .. all is ok ,then i want to change gitlab url to my domain … there is some strange issue. i used Mac osx os. so . i used boot2docker ssh #entry my vm then sudo nsenter –target $PID –mount –uts –ipc –net –pid #entry my container ..(PID is […]

boot2docker command works on shell, but not in script

New to docker here. I have a series of commands which, if fire them off on the shell, work just fine, but if I put them in a script, don’t. boot2docker destroy boot2docker init boot2docker start boot2docker ssh & host=$(boot2docker ip 2> /dev/null) # everything works fine up to here ssh -i $HOME/.ssh/id_boot2docker -o “StrictHostKeyChecking […]

How to build boot2docker.iso from source?

I’m trying to setup Docker on OSX not using the OSX App or Vagrant. I noticed boot2docker now supports the VMWare Guest Additions to mount directories. However the latest version including these changes hasn’t been released yet. So how do I build a new boot2docker.iso file from the GitHub repository? Boot2docker includes a documentation on […]

“The output of `ssh-add -l` doesn't contain 'RSA'. Start the agent, add your keys?” in Docker

I am following this article and have included my AWS credentials. I installed several CLI things required, and now get: $ ./trainer start 5 Greetings, cchilders/cchilders! The output of `ssh-add -l` doesn’t contain ‘RSA’. Start the agent, add your keys? I have already did eval $(ssh-agent) which doesn’t help.

dockerizing an application on Mac OS X

I installed boot2docker as explained on the docker website. Here are some command runs to show that I have things installed correctly: $$:~ kv$ boot2docker start Waiting for VM and Docker daemon to start… ……………….ooo Started. Writing /Users/kvantum/.boot2docker/certs/boot2docker-vm/ca.pem Writing /Users/kvantum/.boot2docker/certs/boot2docker-vm/cert.pem Writing /Users/kvantum/.boot2docker/certs/boot2docker-vm/key.pem Your environment variables are already set correctly. $$:~ kv$ docker images REPOSITORY TAG […]

How to activate docker 1.12 in terminal without Moby the whale app on Mac

I should run Moby the whale app first to be able to use the latest version of Docker (1.12.0) in my terminal. Otherwise, I get an error: Cannot connect to the Docker daemon. Is the docker daemon running on this host? But how can I activate Docker in my terminal without launch Moby the whale […]

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