boot2docker

Docker restart not showing the desired effect

风格不统一 提交于 2019-12-01 12:13:42
问题 I have a small nginx based test application that I want to run inside a docker container. So I followed the example given here docker installation So I have a foder name restartTest and it contains an index.html file that has this single line in it that says Docker Test 1 . I mount this up as my volume during runtime for docker container. So the commmand I use is docker run -dP -v /Users/Sachin/restartTest/:/usr/share/nginx/html --name engine2 nginx And it runs fine. I use curl to verify that

Boot2Docker (on Windows) running Mongo with shared folder (This file system is not supported)

久未见 提交于 2019-12-01 11:26:46
I am trying to start a Mongo container using shared folders on Windows using Boot2Docker. When starting using run -it -v /c/Users/310145787/Desktop/mongo:/data/db mongo i get a warning message inside the container saying: WARNING: This file system is not supported. After starting mongo shutsdown immediately. Any hints or tips on how to solve this? Apparently, according to this gist and Sev ( sevastos ) , mongo doesn't support mounted volume through the VirtualBox shared folder: See mongoDB Productions Notes : MongoDB requires a filesystem that supports fsync() on directories. For example, HGFS

XDebug: Windows + Docker + PHPStorm

流过昼夜 提交于 2019-12-01 11:05:32
My OS is Windows 10. I've run Docker via the boot2docker image. IDE I use is PHPStorm. What I want to do is debug with XDebug, but I don't get it running. I searched the Web and tried the examples I found but nothing helps. Is there anyone with the same architecture who can help me? Edit: Nginx ist running on the server. Current setup: xdebug.ini zend_extension=xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=0 xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.idekey=PhpStorm PhpStorm server Host is same IP I connect for SSH. Path mappings is enabled. Debugger is Xdebug I

Accessing docker host from (jenkins) docker container

我与影子孤独终老i 提交于 2019-12-01 10:37:47
I need to run docker commands from jenkins which is installed as a container on docker. My local setup is on an OSX and I use boot2docker to virtualize the docker machine. I have installed jenkins on docker by simply docker run -d -p 8080:8080 --name jenkins jenkins and it is running fine. On jenkins I have installed "Docker plugin" https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin which needs DOCKER URL in order to access docker api. When boot2docker starts i get the following: DOCKER_HOST=tcp://192.168.59.103:2376 , so I assume docker api is running on that host/por? On jenkins I set

Docker Error: CSS File in Mapped Volume Fails to Update

别等时光非礼了梦想. 提交于 2019-12-01 09:06:18
System Setup: Docker Version 1.9.1, build a34a1d5 Oracle VirtualBox 4.3.34r104062 Image: https://hub.docker.com/r/rc42/flaskserver/ When I edit the CSS file in my flask server <link rel="stylesheet" href="{{ url_for('static', filename='styles/bootstrap.css') }}"> , the following things seem to happen: The changes do not show up when I reload the localhost test page. The changes do not show up when I remove/rerun the container. The changes do not show up when I stop/restart the container. At first, I thought it might be a web browser cache problem, but it is not. I have tested this problem

XDebug: Windows + Docker + PHPStorm

徘徊边缘 提交于 2019-12-01 08:25:33
问题 My OS is Windows 10. I've run Docker via the boot2docker image. IDE I use is PHPStorm. What I want to do is debug with XDebug, but I don't get it running. I searched the Web and tried the examples I found but nothing helps. Is there anyone with the same architecture who can help me? Edit: Nginx ist running on the server. Current setup: xdebug.ini zend_extension=xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=0 xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.idekey

Accessing docker host from (jenkins) docker container

青春壹個敷衍的年華 提交于 2019-12-01 08:19:15
问题 I need to run docker commands from jenkins which is installed as a container on docker. My local setup is on an OSX and I use boot2docker to virtualize the docker machine. I have installed jenkins on docker by simply docker run -d -p 8080:8080 --name jenkins jenkins and it is running fine. On jenkins I have installed "Docker plugin" https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin which needs DOCKER URL in order to access docker api. When boot2docker starts i get the following:

Boot2Docker (on Windows) running Mongo with shared folder (This file system is not supported)

不羁岁月 提交于 2019-12-01 08:14:24
问题 I am trying to start a Mongo container using shared folders on Windows using Boot2Docker. When starting using run -it -v /c/Users/310145787/Desktop/mongo:/data/db mongo i get a warning message inside the container saying: WARNING: This file system is not supported. After starting mongo shutsdown immediately. Any hints or tips on how to solve this? 回答1: Apparently, according to this gist and Sev (sevastos), mongo doesn't support mounted volume through the VirtualBox shared folder: See mongoDB

Xdebug with PHPStorm and a Docker container

风格不统一 提交于 2019-12-01 08:13:17
Setup: Windows 10; Docker running with Boot2Docker on Hyper-V; PHPStorm 9 Webserver on the VM is Nginx. I've configured the xdebug.ini for php5-fpm as: zend_extension=xdebug.so xdebug.remote_enable=on xdebug.remote_port=9000 xdebug.remote_connect_back=On xdebug.remote_handler=dbgp xdebug.profiler_enable=0 If I set a breakpoint and reload the page I get an incoming connection from Xdebug in PHPStorm: I wonder that there is only one file shown and not the entire project which is much bigger. If I accept the connection I can debug the very first line but it is not stopping on my breakpoint and

Xdebug with PHPStorm and a Docker container

一笑奈何 提交于 2019-12-01 06:34:27
问题 Setup: Windows 10; Docker running with Boot2Docker on Hyper-V; PHPStorm 9 Webserver on the VM is Nginx. I've configured the xdebug.ini for php5-fpm as: zend_extension=xdebug.so xdebug.remote_enable=on xdebug.remote_port=9000 xdebug.remote_connect_back=On xdebug.remote_handler=dbgp xdebug.profiler_enable=0 If I set a breakpoint and reload the page I get an incoming connection from Xdebug in PHPStorm: I wonder that there is only one file shown and not the entire project which is much bigger. If