windows – boot2docker vm在重新启动时忘记更改

前端之家收集整理的这篇文章主要介绍了windows – boot2docker vm在重新启动时忘记更改前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
基本上,我在连接到VM时所做的任何更改都会在重新启动VM时丢失.我假设当我停止VM时问题与错误相关联.
C:\Users\Tom>boot2docker stop
error in run: Failed to stop machine "boot2docker-vm": exit status 1

但是,我可能只是在做一些愚蠢的事情.

我遵循的顺序如下(docker logo elided),您可以看到它在重新启动时丢失了示例目录.

C:\Users\Tom>boot2docker up

Waiting for VM and Docker daemon to start.......................ooo
Started.
Writing C:\Users\Tom\.boot2docker\certs\boot2docker-vm\ca.pem
Writing C:\Users\Tom\.boot2docker\certs\boot2docker-vm\cert.pem
Writing C:\Users\Tom\.boot2docker\certs\boot2docker-vm\key.pem
Docker client does not run on Windows for now. Please use
    "boot2docker" ssh
to SSH into the VM instead.


C:\Users\Tom>boot2docker ssh
Boot2Docker version 1.5.0,build master : a66bce5 - Tue Feb 10 23:31:27 UTC 2015
Docker version 1.5.0,build a8a31ef
docker@boot2docker:~$ls
boot2docker,please format-me
docker@boot2docker:~$mkdir testdir
docker@boot2docker:~$ls
boot2docker,please format-me  testdir/
docker@boot2docker:~$exit

C:\Users\Tom>boot2docker stop
error in run: Failed to stop machine "boot2docker-vm": exit status 1

C:\Users\Tom>boot2docker status
poweroff

C:\Users\Tom>boot2docker start
Waiting for VM and Docker daemon to start...
....................ooo
Started.
Writing C:\Users\Tom\.boot2docker\certs\boot2docker-vm\ca.pem
Writing C:\Users\Tom\.boot2docker\certs\boot2docker-vm\cert.pem
Writing C:\Users\Tom\.boot2docker\certs\boot2docker-vm\key.pem
Docker client does not run on Windows for now. Please use
    "boot2docker" ssh
to SSH into the VM instead.


C:\Users\Tom>boot2docker ssh
Boot2Docker version 1.5.0,please format-me
docker@boot2docker:~$

运行

> Windows:8.1
> VirtualBox:4.3.12 r93733
> Boot2Docker 1.5.0版,构建大师:a66bce5 – 2月10日星期二23:31:27 UTC 2015
> Docker版本1.5.0,构建a8a31ef

这就是我在“ Windows Boot2Docker behind corporate proxy”中解释的内容:boot2docker使用的 Tiny Core中没有持久性作为Linux VM.

You need to make sure the VirtualBox has the 07002 downloaded and added in the Virtual Box / File / Settings / Extension / add the Oracle_VM_VirtualBox_Extension_Pack-4.x.yy-zzzzz.vBox-extpack file).

As documented in boot2docker,you will have access (from your Tiny Core ssh session) to /c/Users/<yourLogin> (ie the %USERPROFILE% is shared by Virtual Box)

我在b2d.bat启动脚本中所做的是复制我想要恢复的文件(主要是docker profile或.ashrc,用于http_proxy设置和喜欢的别名),并将所有其他修改保存在/ c / Users /< yourLogin>中.

猜你在找的Windows相关文章