boot2docker

How to execute a command on a running docker container?

﹥>﹥吖頭↗ 提交于 2019-12-12 01:47:16
问题 I have a container running hadoop. I have another docker file which contains Map-Reduce job commands like creating input directory, processing a default example, displaying output. Base image for the second file is hadoop_image created from first docker file. EDIT Dockerfile - for hadoop #base image is ubuntu:precise #cdh installation #hadoop-0.20-conf-pseudo installation #CMD to start-all.sh start-all.sh #start all the services under /etc/init.d/hadoop-* hadoop base image created from this.

Unable to connect to Docker Nginx build

偶尔善良 提交于 2019-12-11 09:45:24
问题 I am trying to host a simple static site using the Docker Nginx Image from Dockerhub: https://registry.hub.docker.com/_/nginx/ A note on my setup, I am using boot2docker on OSX. I have followed the instructions and even I cannot connect to the running container: MacBook-Pro:LifeIT-war-games-frontend ryan$ docker build -t wargames-front-end . Sending build context to Docker daemon 813.6 kB Sending build context to Docker daemon Step 0 : FROM nginx ---> 42a3cf88f3f0 Step 1 : COPY app /usr/share

Docker build specific local git branch

吃可爱长大的小学妹 提交于 2019-12-11 05:49:21
问题 I am new to docker and would like to containerize a specific git branch of my app.If I run docker build and give the location of my dockerfile, an image will be build but from the local master branch by default.I want to be able to build another branch say "develop".I have done some research and all the answers I found suggest building from a specific remote branch and not a specific local branch. 回答1: You’d do this the same way you’d build or run any other program, from source, from a non

Can't run docker on os X with boot2docker

混江龙づ霸主 提交于 2019-12-11 03:11:27
问题 I've tried to remove docker with this manual. And I removed virtualbox. And then tried to install boot2docker. After boot2docker init etc (by the manual on docker site) docker run helloworld gives me this error Cannot connect to the Docker daemon. Is 'docker -d' running on this host? boot2docker status running docker version Client version: 1.7.0 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 0baf609 OS/Arch (client): darwin/amd64 Cannot connect to the Docker

Why is bash so painfully slow in boot2docker for Windows?

≡放荡痞女 提交于 2019-12-11 02:24:14
问题 I have installed boot2docker on Windows 7 and I have noticed that it is incredibly slow. I have tried on several machines with the same result - it takes a while to load and the worst part is the lag between typing and the characters actually appearing on screen is horrible - around 20-30 seconds! This makes boot2docker virtually impossible to use on windows. I wonder if someone has come accross this problem and can see any solution? 回答1: It looks like the problem comes from the SSH client

boot2docker shellinit command ended up in error “Error requesting socket: exit status 255”

不想你离开。 提交于 2019-12-11 00:36:42
问题 Installed boot2docker on OSX, as per instructions of http://boot2docker.io/. After that started the application. In a terminal, boot2docker shellinit command started and ended up in throwing this error "Error requesting socket: exit status 255". Tried boot2docker stop--->delete--->download--->init--->up . It didn't help. The version I used is v1.3.1. Any ideas why it might have failed? Thanks! 回答1: Finally this solution worked for me. It seems like, it is mandatory to have the localhost

how to permanently set environment variable for boot2docker

∥☆過路亽.° 提交于 2019-12-10 22:12:38
问题 I have tried to put my environment variable at /var/lib/boot2docker/profile file at guest machine, and restart it export http_proxy=http://proxy:port then i open shell from my host machine (Windows 7) by using docker-machine ssh default I can't find 'http_proxy' from my environment variable by using env 回答1: The docker daemon sources /var/lib/boot2docker/profile before starting. The HTTP_PROXY variable will be available in the docker daemons environment. Users logging in via ssh will not see

Node.js Running Hello World on Google Cloud Platform error deployment error

烈酒焚心 提交于 2019-12-10 18:48:45
问题 I am on Mac OSX Yosemite, I have an error occuring when I execute the step "Running Hello World" following the Node.JS "Hello World" tutorial for Google Cloud Platform The initial error is listed below: Nissans-MacBook-Pro:1-hello-world nissan$ gcloud preview app deploy app.yaml --set-default You are about to deploy the following modules: - hello-world-project-1018/default (from [/Users/nissan/source/repos/1-hello-world/app.yaml]) Deployed URL: [https://hello-world-project-1018.appspot.com]

docker build failing with Could not resolve 'archive.ubuntu.com'

那年仲夏 提交于 2019-12-10 18:12:51
问题 I cannot build my image with the following Dockerfile: FROM ubuntu RUN apt-get -y update && apt-get -y install \ nodejs npm ssh # cache npm install when package.json hasn't changed WORKDIR /tmp ADD package.json package.json RUN npm install RUN npm install -g pm2 RUN mkdir /sparrow RUN cp -a /tmp/node_modules /sparrow WORKDIR /sparrow ADD . /sparrow/ RUN npm run build # ssh keys WORKDIR /root RUN mv /sparrow/.ssh /root/ # upload js and css WORKDIR /sparrow/build # UPLOAD TO S3! # go back to

How to use docker-java API to connect docker?

为君一笑 提交于 2019-12-10 18:06:48
问题 I'm new to docker, and I want to use java api to print my docker information. Then I find the Api in this link about docker-java. And I found my boot2docker ip is 196.168.59.103:2376. And I use this command: docker -H tcp://192.168.59.103:2376 version It can succeed and show me this information: Client version: 1.7.0 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 0baf609 OS/Arch (client): darwin/amd64 Server version: 1.7.0 Server API version: 1.19 Go version