Comments (6)
@wanghaisheng 你好,直接将宿主机上的代码目录挂载到镜像里不行吗?
from vanilla.
@idevz docker run -d -p 9110:9110 -v=pwd
/demo:/tmp/vdemo -w=/tmp/vdemo edwin/vanilla-openresty-alpine
这样子覆盖不了container里vanilla new vdemo生成的代码
from vanilla.
@wanghaisheng 你的问题解决了?
from vanilla.
@idevz 暂时定位成docker-machine的问题 这货底层使用boot2docker镜像 导致宿主机(我用的ubuntu)的目录挂载到container里存在问题 暂未找到解决方案。。
from vanilla.
@wanghaisheng 嗯哪,后续有结果咱们再通气
from vanilla.
@idevz
macbook
➜ ~ docker-machine version
docker-machine version 0.6.0, build e27fb87
➜ ~ boot2docker version
Boot2Docker-cli version: v1.8.0
Git commit: 9a26066
docker-machine create --driver virtualbox dev 时dev中会自动挂载宿主机的user目录到镜像里的/User目录
参考
运行docker container的时候只需要改写一下文件目录 如下
docker run -t -i -v /Users/wanghaisheng/workspace/docker-for-fun/docker-openresty/vanilla-alpine/demo1:/tmp/vdemo/ -w /tmp/vdemo -p 9110:9110 edwin/vanilla-openresty-alpine /bin/sh
但是宿主机和镜像里的文件同步还是有问题
使用此项目即可解决文件同步的问题
https://github.com/brikis98/docker-osx-dev
···
docker-machine create --driver virtualbox
eval "$(docker-machine env )"
docker-osx-dev install
cd /foo/bar
docker-osx-dev
···
from vanilla.
Related Issues (20)
- How to install on Windows? HOT 1
- 全局变量Registry,并发请求的时候相互覆盖 HOT 6
- What is the usage (how to use), files under /vanilla/sys/nginx/*.lua HOT 1
- gitbook not found HOT 1
- 中文文档404 HOT 1
- English Docs?
- default template engine suffer from shared global var problem. HOT 1
- lua_code_cache in conf invalid HOT 3
- error: attempt to set ngx.status after sending out response headers HOT 1
- ./configure error HOT 1
- restful路由模式能否实现html后缀 HOT 1
- lua_code_cache关闭后报500错误 HOT 3
- restful.lua
- 启用waf功能报错 HOT 1
- vanilla /opt/openresty/luajit/bin/luajit: /opt/vanilla/bin/vanilla:2: unexpected symbol near '-' HOT 3
- 关于 simple 和 restful 的路由选择 HOT 4
- 解决vanilla多项目使用 resty-template模板缓存问题 HOT 1
- vanilla的restful路由增加对 类似 /web/lua-intro.html 有 - 的url 匹配 HOT 1
- 多项目 路由缓存bug重现 HOT 1
- 最新版 vanilla页面缓存 key 设置不合理。 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vanilla.