zeus 3 years ago
parent
commit
e0afe67b5b
  1. 46
      faq/modules/ROOT/pages/index.adoc

46
faq/modules/ROOT/pages/index.adoc

@ -2,7 +2,24 @@
[#How_to_get_the_path_of_current_script0]
xref:index.adoc#netflix[How to get the path of current script]
xref:index.adoc#How_to_get_the_path_of_current_script[How to get the path of current script]
[#Fix_x509_certificate_signed_by_unknown_authority_issue0]
xref:index.adoc#Fix_x509_certificate_signed_by_unknown_authority_issue[How to Fix "x509: certificate signed by unknown authority" issue]
[#Add_current_user_to_the_docker_group0]
xref:index.adoc#Add_current_user_to_the_docker_group[Homw to Add current user to the docker group]
@ -46,7 +63,32 @@ echo $wdir
----
[#Fix_x509_certificate_signed_by_unknown_authority_issue]
[.text-right]
== How to Fix "x509: certificate signed by unknown authority" issue xref:index.adoc#Fix_x509_certificate_signed_by_unknown_authority_issue0[image:up-1.png[28,28,float=right]]
run with sudo
[source,bash]
----
#!/bin/bash
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
----
[#Add_current_user_to_the_docker_group]
[.text-right]
== Homw to Add current user to the docker group xref:index.adoc#Fix_x509_certificate_signed_by_unknown_authority_issue0[image:up-1.png[28,28,float=right]]
[source,bash]
----
sudo usermod -aG docker $USER
----

Loading…
Cancel
Save