Docker的基本命令举例分析
这篇文章主要讲解了“Docker的基本命令举例分析”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Docker的基本命令举例分析”吧!
创新互联专注为客户提供全方位的互联网综合服务,包含不限于成都网站建设、网站建设、龙华网络推广、微信小程序定制开发、龙华网络营销、龙华企业策划、龙华品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联为所有大学生创业者提供龙华建站搭建服务,24小时服务热线:028-86922220,官方网址:www.cdcxhl.com
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
示例:
docker-machine ls 查看当前可用的docker machine(注意关闭VPN,不然会获取不到本地IP)
docker-machine create --driver virtualbox zx1 用virtualbox创建名为zx1的docker machine
docker-machine env zx1 查看名为zx1的docker machine的环境变量
docker-machine start zx1 启动名为zx1的docker machine
docker-machine rm zx1 移除名为zx1的docker machine
感谢各位的阅读,以上就是“Docker的基本命令举例分析”的内容了,经过本文的学习后,相信大家对Docker的基本命令举例分析这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!
新闻名称:Docker的基本命令举例分析
文章起源:http://azwzsj.com/article/ijjdec.html