Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis of basic commands of Docker with examples

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains the "Docker basic command example analysis", the article explains the content is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "Docker basic command example analysis" bar!

Usage: docker-machine.exe [OPTIONS] COMMAND [arg...]

Create and manage machines running Docker.

Version: 0.8.0, build b85aac1

Author:

Docker Machine Contributors-

Options:

-debug,-D Enable debug mode

-- storage-path,-s "C:\ Users\ 97449\ .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]

-- github-api-token Token to use for requests to the Github API [$MACHINE_GITHUB_API_TOKEN]

Native-ssh Use the native (Go-based) SSH implementation. [$MACHINE_NATIVE_SSH]

-- bugsnag-api-token BugSnag API token for crash reporting [$MACHINE_BUGSNAG_API_TOKEN]

-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

Provision Re-provision existing 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

Version Show the Docker Machine version or a machine docker version

Help Shows a list of commands or help for one command

Example:

Docker-machine ls to check the currently available docker machine (be careful to close VPN, otherwise you will not get the local IP)

Docker-machine create-- driver virtualbox zx1 uses virtualbox to create a docker machine named zx1

Docker-machine env zx1 looks at the environment variable of the docker machine named zx1

Docker-machine start zx1 starts a docker machine named zx1

Docker-machine rm zx1 removes the docker machine named zx1

Thank you for your reading, the above is the content of "Docker basic command example analysis". After the study of this article, I believe you have a deeper understanding of the Docker basic command example analysis of this problem, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report