You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
595 B
10 lines
595 B
4 years ago
|
registry_address=hub.swarmlab.io
|
||
|
registry_port=5443
|
||
|
mkdir -p /etc/docker/certs.d/$registry_address:$registry_port
|
||
|
openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt
|
||
|
|
||
|
registry_port=5480
|
||
|
mkdir -p /etc/docker/certs.d/$registry_address:$registry_port
|
||
|
openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt
|
||
|
|