Mac OS X Yosemite 10.10.1安装Docker

本文详细介绍了如何在Mac OS X Yosemite上安装Docker,包括通过Boot2Docker安装包和使用brew命令行工具。还提到了一些常见问题及其解决方案,如版本不匹配、容器修改保存和Docker账户激活。
摘要由CSDN通过智能技术生成

2014-12-06 wcdj

摘要:本文记录Docker在OS X Yosemite的安装方法,也可参考Docker的这篇文章Installing Docker on Mac OS X


0 介绍

Docker is a platform for developers and sysadmins to develop, ship, and run applications. Docker lets you quickly assemble applications from components and eliminates the friction that can come when shipping code. Docker lets you get your code tested and deployed into productionas fast as possible.

Docker consists of:

  • The Docker Engine - our lightweight and powerful open source container virtualization technology combined with a work flow for building and containerizing your applications.
  • Docker Hub - our SaaS service for sharing and managing your application stacks.



1 安装

下载最新的安装包:Boot2Docker-1.3.2.pkg,安装完成后如下图所示:


docker的默认安装目录:



docker的相关用法:

gerryyang@mba:docker$docker
Usage: docker [OPTIONS] COMMAND [arg...]

A self-sufficient runtime for linux containers.

Options:
  --api-enable-cors=false                          Enable CORS headers in the remote API
  -D, --debug=false                                Enable debug mode
  -d, --daemon=false                               Enable daemon mode
  -G, --group="docker"                             Group to assign the unix socket specified by -H when running in daemon mode
                                                     use '' (the empty string) to disable setting of a group
  -H, --host=[]                                    The socket(s) to bind to in daemon mode or connect to in client mode, specified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.
  --tls=false                                      Use TLS; implied by tls-verify flags
  --tlscacert="/Users/gerryyang/.docker/ca.pem"    Trust only remotes providing a certificate signed by the CA given here
  --tlscert="/Users/gerryyang/.docker/cert.pem"    Path to TLS certificate file
  --tlskey="/Users/gerryyang/.docker/key.pem"      Path to TLS key file
  --tlsverify=false                                Use TLS and verify the remote (daemon: verify client, client: verify daemon)
  -v, --version=false                              Print version information and quit

Commands:
    attach    Attach to a running container
    build     Build an image from a Dockerfile
    commit    Create a new image from a container's changes
    cp        Copy files/folders from a container's filesystem to the host path
    create    Create a new container
    diff      Inspect changes on a container's filesystem
    events   
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值