boot2docker

Accessing apache2 residing inside Docker container from Host machine web browser

浪子不回头ぞ 提交于 2019-12-05 22:06:47
I have been creating a webserver as Docker container and trying to access it outside the container. But I can't. What I am doing is. -Pulling a ubuntu image: docker pull ubuntu:14.04 -Starting a container: docker -t -i -p 49200:2375 [image-id] and after installing apache2 in newly started container I can ping the apache2 server inside container, I can also do curl and see results in container terminal, but no luck outside on host machine. I have tried many times. (I am using Virtual Box on windows) Screen shots: Questions: Am I using right docker commands and port numbers to create container.

how to reconnect to a docker container

不羁岁月 提交于 2019-12-05 19:18:50
I have a docker container running ubuntu and a simple node express site. I connected to the container as follows docker run -i -t -p 8080:3000 node-express The node app in the container is running with pm2, so it continues once I exit out of the container. CONTAINER ID IMAGE f32de2737e80 node-express:latest Now assume I want to make an update to my app. I assume I need to connect to the container, stop the node app, and make an update, e.g. git pull then restart it. My first question is how do I reconnect to this container? Another question I have, Is this a normal approach for updating a

Boot2Docker for OS X fails to start

爱⌒轻易说出口 提交于 2019-12-05 08:43:27
I am new to docker and I'm attempting to run boot2docker on my work computer. I'm logged in to the computer running OS X version 10.10.1 (Yosemite) with a user account that mounts the home directory from the office network. I installed Docker v1.4.1 from https://github.com/boot2docker/osx-installer/releases and VirtualBox 4.3.20 for OS X hosts from https://www.virtualbox.org/wiki/Downloads I followed the instructions on docker.com mac installation but I didn't get the supposed to be results. The docker terminal gives this error: bash-3.2$ /usr/local/bin/boot2docker init Virtual machine

How do I dockerize an existing application…the basics

随声附和 提交于 2019-12-05 08:28:21
I've watched a ton of youtube videos and read all of the docker docs. However I still do not get a core concept that is stopping me from understanding docker. I am using windows and have boot2docker installed. I've downloaded images from docker hub and run basic commands. BUT How do I take an existing application sitting on my local machine (lets just say it has one file 'index.php', for simplicity). How do I take that and put it into a docker image and run it? coladict Your index.php is not really an application. The application is your Apache or nginx or even PHP's own server. Because Docker

The right way to move a data-only docker container from one machine to another

房东的猫 提交于 2019-12-05 00:47:20
问题 I have a database docker container that is writing its data to another data-only container. The data-only container has a volume where it stores the data of the database. Is there a "docker" way of migrating this data-only container from one machine to another? I read about docker save and docker load but these commands save and load images, not containers. I want to be able to package the docker container along with its volumes and move it to another machine. 回答1: Checkout the flocker

Docker mongodb share volume with mac os x

最后都变了- 提交于 2019-12-04 19:36:57
问题 I try to use the mongodb official docker image on mac os x 10.10.2 with this command inside mac terminal : docker run -v /Users/john/data/db:/data/db -p 27017:27017 mongo --smallfiles But it exits with this error log : 2015-04-11T10:53:19.709+0000 I JOURNAL [initandlisten] journal dir=/data/db/journal 2015-04-11T10:53:19.711+0000 I JOURNAL [initandlisten] recover begin 2015-04-11T10:53:19.711+0000 I STORAGE [initandlisten] In File::open(), ::open for '/data/db/journal/lsn' failed with errno:1

Connecting to MySQL Server on localhost through Docker

折月煮酒 提交于 2019-12-04 18:04:39
So, I'm able to generally contact my localhost through Docker by running a container with --add-host=localbox:192.168.59.3 . ping localbox works just fine. Problem is, I can't seem to be able to even get a response from MySQL Server. mysql -h localbox , which works fine from outside of the docker container, just gets me ERROR 2003 (HY000): Can't connect to MySQL server on 'localbox' (111) from within. I've done GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; I've added bind-address = 0.0.0.0 into /etc/my.cnf. None of this helps. What gives? Context: I'm

Ubuntu based docker-machine image

流过昼夜 提交于 2019-12-04 11:02:06
问题 Is there a possibility to simply create a docker-machine that is non-boot2docker based (i.e., Ubuntu based) (which uses virtualbox driver)? I would like to have full-featured Linux distro running the docker daemon on my mac instead of Tiny Core Linux distro which is fast and lightweight but doesn't offer me all the debugging facilities I need. I know I can create it manually. I'm just wondering if there is a simple way such as docker-machine create is. 回答1: You could take advantage of the -

Can not pull docker image from private repo when using Minikube

只愿长相守 提交于 2019-12-04 09:28:15
问题 I am attempting to use Minikube for local kubernetes development. I have set up my docker environment to use the docker daemon running in the provided Minikube VM (boot2docker) as suggested: eval $(minikube docker-env) It sets up these environment variables: export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="/home/jasonwhite/.minikube/certs" When I attempt to pull an image from our private docker repository: docker pull oururl.com:5000/myimage

Update & Upgrade Docker distribution on Windows

自古美人都是妖i 提交于 2019-12-04 06:56:45
At the moment I've got Docker v.1.7 and I'd want to upgrade it to latest (1.8 at the moment). Important part: I want to do this without installing Docker and boot2docker again. I wasn't able to find any info about it. Is it possible? And how can I do this? If you already have boot2docker, the upgrade is the usual: boot2docker stop boot2docker download boot2docker start docker@boot2docker:~$ docker version Client: Version: 1.8.1 API version: 1.20 Go version: go1.4.2 Git commit: d12ea79 Built: Thu Aug 13 02:49:29 UTC 2015 OS/Arch: linux/amd64 That being said, going forward, docker machine is the