怎样在mac上彻底删除docker

No offense against Docker. I like the concept and the software!

– This guide is based on V1.3.0 of the installer –

But I absolutely do not like the official Docker OS X installer (install manual) which you can download here.

The reason for this are:

  • It installs Virtualbox and has downgraded my existing Virtualbox Host software!
  • It installs an app and several binaries.
  • Everything packaged up into a .pkg and no uninstall app or instructions anywhere!

In summary it tries to do too much. Many developers use tools like Vagrant & Homebrew. Why not go that way?

Uninstall steps for boot2docker / Docker

Be sure you’ve only used the official installer. This uninstall guide is not the right one if you have installed Docker with e.g. Homebrew or other methods.

First stop boot2docker and delete the VBox image:

1
2
boot2docker stop
boot2docker delete

Remove the environmental variable DOCKER_HOST in case you have fixed it somewhere like e.g. in .bash_profile

Drag and Drop the boot2docker app logo from applications into the trash can of OS X.

Remove Docker and boot2docker command line tools:

1
2
sudo rm /usr/local/bin/docker
sudo rm /usr/local/bin/boot2docker

Remove boot2docker VBox image:

1
2
3
4
sudo rm /usr/local/share/boot2docker/boot2docker.iso
sudo rmdir /usr/local/share/boot2docker

rm -rf ~/.boot2docker

Remove boot2docker ssh keys:

1
rm ~/.ssh/id_boot2docker*

Remove additional boot2docker files in /private folder:

1
2
sudo rm -f /private/var/db/receipts/io.boot2docker.*
sudo rm -f /private/var/db/receipts/io.boot2dockeriso.*

(Optional) Uninstall steps for Virtualbox

You can also delete Virtualbox of course. But if you are a developer you probably need it anyway. In case your VBox got also downgraded: Reinstall Virtualbox.

If you really want to uninstall Virtualbox:

But I like Docker, how to install it without pain on OS X and how to upgrade?

I will explain this in a later post! :)


Update 2014-10-06:
Update 2014-11-13:
Update 2014-11-21:

 Aug 26th, 2014  dockeruninstall

转自:http://therealmarv.com/how-to-fully-uninstall-the-offical-docker-os-x-installation/

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值