mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Merge pull request #3303 from crosbymichael/add-host-flag
Add DOCKER_HOST env var for client
This commit is contained in:
@@ -52,6 +52,18 @@ To set the DNS server for all Docker containers, use ``docker -d -dns 8.8.8.8``.
|
||||
|
||||
To run the daemon with debug output, use ``docker -d -D``.
|
||||
|
||||
The docker client will also honor the ``DOCKER_HOST`` environment variable to set
|
||||
the ``-H`` flag for the client.
|
||||
|
||||
::
|
||||
|
||||
docker -H tcp://0.0.0.0:4243 ps
|
||||
# or
|
||||
export DOCKER_HOST="tcp://0.0.0.0:4243"
|
||||
docker ps
|
||||
# both are equal
|
||||
|
||||
|
||||
.. _cli_attach:
|
||||
|
||||
``attach``
|
||||
|
||||
Reference in New Issue
Block a user