Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.73 KB

PouchContainerEnvironmentSetUpAndExperience_ChineseVersion.md

File metadata and controls

58 lines (38 loc) · 1.73 KB

PouchContainer环境搭建和体验

基于macOS High Sierra 10.13.6为宿主机,VirtualBox + Ubuntu16.04 运行PouchContainer的环境搭建和体验

1. 安装虚拟机

笔者的宿主系统为macOS,使用Homebrew安装VirtualBox,关于Homebrew请参考:https://brew.sh/

brew cask search virtualbox

接着运行VirtualBox undefined

新建一个虚拟机 undefined

选择钉钉群的磁盘即可 undefined

2. 运行虚拟机

先在虚拟机中设置一下端口转发,以便宿主机ssh到虚拟机 undefined undefined

然后运行虚拟机,账户为pouch,密码123456,检查虚拟机实例是否打开22端口,如果是就exit退出实例 在宿主机中输入

ssh -l pouch -p 1111 127.0.0.1

undefined 切换到root

sudo su root

3. 运行pouch

先创建pouch实例

pouch run -t -d busybox sh

返回一个key,后面有用

pouch exec -it <key> sh

然后我们就进入了pouch的容器 undefined