2016-12-02 13 views
0

私はメニューバーにMacのアイコンのためにドッカーをダブルクリックすると、私が登場するアイコンを参照してください。Docker for Macのステータス「Running」は何を意味しますか?

enter image description here

私は2つの質問があります。

1)どのように私は同じ効果を得ることができますコマンドラインから? - 私はコンテナがアップすることができ理解しますが、ドッカー - >今日のように、コマンドラインだけでドッキングウィンドウが

Mac:bin romain$ docker 
Usage: docker [OPTIONS] COMMAND [arg...] 
     docker [ --help | -v | --version ] 

A self-sufficient runtime for containers. 

Options: 

    --config=~/.docker    Location of client config files 
    -D, --debug      Enable debug mode 
    -H, --host=[]     Daemon socket(s) to connect to 
    -h, --help      Print usage 
    -l, --log-level=info   Set the logging level 
    --tls       Use TLS; implied by --tlsverify 
    --tlscacert=~/.docker/ca.pem Trust certs signed only by this CA 
    --tlscert=~/.docker/cert.pem Path to TLS certificate file 
    --tlskey=~/.docker/key.pem  Path to TLS key file 
    --tlsverify      Use TLS and verify the remote 
    -v, --version     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 between a container and the local filesystem 
    create Create a new container 
    diff  Inspect changes on a container's filesystem 
    events Get real time events from the server 
    exec  Run a command in a running container 

2を指令する私に与えます)、彼らが何を意味するか「ドッキングウィンドウが実行されていますか」?

+0

http://apple.stackexchange.comを試してください。 – lhf

+0

類似の質問:http://superuser.com/questions/1105087/starting-docker-for-mac-from-the-command-line – nwinkler

答えて

0

open -a Dockerをコマンドラインで使用できます。

Dockerデーモンは、docker psのようなコマンドを受け入れて、適切なコンテナにコマンドを渡すか、コンテナまたはデーモンから何かを返すようにすることを意味します。

1

Docker for Macが実行中であると言われると、仮想化されたDocker環境がマシン上で実行されていることを意味します。 Mac用Dockerはxhyveを使用してMac上で小さなLinux VMを実行します。

Docker自体がそのVMの内部でデーモンとして実行されます。 Docker for Macのメニューバーのアイコンには、Linux VMが起動しているかどうかが表示されます。

ターミナルで実行できるdockerコマンドを使用すると、そのLinux VMで実行されているDockerデーモンと対話できます。 dockerコマンドを使用すると、イメージを構築したり、コンテナを作成/開始/停止することができます。

関連する問題