Docker is a great tool for getting lightweight, isolated Linux environments. It uses technology that doesn’t work natively on Macs. Until now you’ve had to boot into a VM to install and use Docker, but it’s now a little easier than that.
Brew Cask Sourcetree Classic
SourceTree - 强大的 Git 跨平台客户端。 SmartGit - 非商业用途免费,全平台支持,集成 Github 服务。 Sublime Merge - Git客户端,来自Sublime Text的制造商。 Tower2 - 最强大的 Git 客户端。 Versions - Mac 上最好的 SVN 管理工具。 版本控制系统. SourceTree - 强大的 Git 跨平台客户端。 SmartGit - 非商业用途免费,全平台支持,集成 Github 服务。 Sublime Merge - Git客户端,来自Sublime Text的制造商。 Tower2 - 最强大的 Git 客户端。 Versions - Mac 上最好的 SVN 管理工具。 版本控制系统. Hud gta san andreas. Mac OSX Setup - Brew and Cask. GitHub Gist: instantly share code, notes, and snippets. Ragnarok online guild logo.
As of Docker 0.8 it can be run on Macs thanks to a specially developed, lightweight VirtualBox VM. There are official instructions for installing Docker on Mac, but with Homebrew and cask it’s even easier.
Follow the instructions on the cask homepage to install it. Cask is an extension to Homebrew for installing Mac binary packages via the command line. Think things like Chrome or Steam. Or VirtualBox. Running Docker on Mac requires VirtualBox so if you don’t have it already:
Then install Docker and the helper tool boot2docker
:
boot2docker
takes care of the VM that Docker runs in. To get things started it needs to download the Docker VM and start a daemon that the docker
command line tool will talk to:
The docker
command line tool should now be able to talk to the daemon and if you run docker version
you should see a report for both a server and a client. (Note: When I ran boot2docker up
it told me that the default port the daemon uses was already taken. I had to specify a different port via the DOCKER_HOST
environment variable, which I now set in my shell configuration.)
If everything has gone well to this point you should now be able to start up a Docker instance. This command will drop you into a bash shell in Ubuntu:
Use ctrl-D
to exit. I find this especially helpful for very quickly getting to a Linux command line from my Mac for testing this or that, like checking what versions of software are installing by apt-get
.
Visit the Docker documentation to learn more about what you can do with Docker and how to do it.
About the App
Brew Cask Sourcetree Recipe
- App name: SourceTree
- App description: sourcetree (App: SourceTree.app)
- App website: https://www.sourcetreeapp.com/
Install the App
- Press
Command+Space
and type Terminal and press enter/return key. - Run in Terminal app:
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
and press enter/return key.
If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish. - Run:
brew cask install sourcetree
Brew Cask Install
Done! You can now use SourceTree.