創屋ぷれす

Dockerコマンドヘルプ docker-machine,docker

—————————-
$ docker-machine –help
Usage: docker-machine [OPTIONS] COMMAND [arg…]

Create and manage machines running Docker.

Version: 0.4.1 (e2c88d6)

Author:
Docker Machine Contributors –

Options:
–debug, -D Enable debug mode
-s, –storage-path “/Users/matsumura/.docker/machine” Configures storage path [$MACHINE_STORAGE_PATH]
–tls-ca-cert CA to verify remotes against [$MACHINE_TLS_CA_CERT]
–tls-ca-key Private key to generate certificates [$MACHINE_TLS_CA_KEY]
–tls-client-cert Client cert to use for TLS [$MACHINE_TLS_CLIENT_CERT]
–tls-client-key Private key used in client TLS auth [$MACHINE_TLS_CLIENT_KEY]
–native-ssh Use the native (Go-based) SSH implementation. [$MACHINE_NATIVE_SSH]
–help, -h show help
–version, -v print the version

Commands:
active Print which machine is active
config Print the connection config for machine
create Create a machine
env Display the commands to set up the environment for the Docker client
inspect Inspect information about a machine
ip Get the IP address of a machine
kill Kill a machine
ls List machines
regenerate-certs Regenerate TLS Certificates for a machine
restart Restart a machine
rm Remove a machine
ssh Log into or run a command on a machine with SSH.
scp Copy files between machines
start Start a machine
status Get the status of a machine
stop Stop a machine
upgrade Upgrade a machine to the latest version of Docker
url Get the URL of a machine
help, h Shows a list of commands or help for one command

Run ‘docker-machine COMMAND –help’ for more information on a command.

—————————-
$docker –help

Usage: docker [OPTIONS] COMMAND [arg…]
docker [ -h | –help | -v | –version ]

A self-sufficient runtime for containers.

Options:

–config=~/.docker Location of client config files
-D, –debug=false Enable debug mode
-H, –host=[] Daemon socket(s) to connect to
-h, –help=false Print usage
-l, –log-level=info Set the logging level
–tls=false Use TLS; implied by –tlsverify
–tlscacert=~/.docker/machine/machines/default/ca.pem Trust certs signed only by this CA
–tlscert=~/.docker/machine/machines/default/cert.pem Path to TLS certificate file
–tlskey=~/.docker/machine/machines/default/key.pem Path to TLS key file
–tlsverify=true Use TLS and verify the remote
-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 to a HOSTDIR or to STDOUT
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
export Export a container’s filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on a container or image
kill Kill a running container
load Load an image from a tar archive or STDIN
login Register or log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within a container
port List port mappings or a specific mapping for the CONTAINER
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart a running container
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save an image(s) to a tar archive
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop a running container
tag Tag an image into a repository
top Display the running processes of a container
unpause Unpause all processes within a container
version Show the Docker version information
wait Block until a container stops, then print its exit code

Run ‘docker COMMAND –help’ for more information on a command.

—————————-

メモ
Docker本体がバージョンアップした時,DockerToolbox自体もアップグレードされるとのこと.
VMは自動では更新されないので以下のコマンドを実行する.
 docker-machine upgrade default
boot2dockerとは違い,deleteしなくてもよい

創屋のホームページはこちらから

Comments are closed.