-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
了解Docker, 以及相关的前景 #2
Comments
如何利用docker搭建rails的运行环境 为什么要使用docker 使用docker的服务: native docker: Q: image 和 container 的关系还是没弄明白, container是从image里面取所需要的内容来创建一个运行环境吗? docker 教程概念介绍 对比VMwaredocker 相关软件https://www.docker.com/products/docker-toolbox 安装和运行基础步骤brew install caskroom/cask/brew-cask
brew cask install virtualbox
brew install docker docker-machine
docker-machine create --driver virtualbox default
eval "$(docker-machine env default)"
docker-machine start
docker-machine env default
add to .zshrc
eval `docker-machine env 2>/dev/null`
brew install docker-compose
docker build .
docker-compose run web rake db:create db:setup
docker-machine ip default
docker-compose up
|
:docker-machine docker-machine是用来与虚拟机进行交互, 包括启动, 暂停, 设置虚拟机环境等.
|
https://www.docker.com
The text was updated successfully, but these errors were encountered: