docker-machine regenerate-certs

Usage: docker-machine regenerate-certs [OPTIONS] [arg...]

Regenerate TLS Certificates for a machine

Description:
   Argument(s) are one or more machine names.

Options:

   --force, -f		Force rebuild and do not prompt
   --client-certs	Also regenerate client certificates and CA.

重新生成TLS证书,并使用新证书更新计算机。

例如:

$ docker-machine regenerate-certs dev

Regenerate TLS machine certs?  Warning: this is irreversible. (y/n): y
Regenerating TLS certificates

如果您的证书已过期,则还需要使用以下--client-certs选项重新生成客户端证书:

$ docker-machine regenerate-certs --client-certs dev

Regenerate TLS machine certs?  Warning: this is irreversible. (y/n): y
Regenerating TLS certificates
Regenerating local certificates
...
机器再生证书子命令