1. Upgrade process: sudo apt-get updateProblems such as missing packages and old package versions can be solved in this way. If not, then it means that authentication is missing and you need to generate your own authentication certificate. 2. Generate your own authentication certificateCreate a folder first mkdir -p certs After that, create the certificate. The certificate is generated in the folder just created. openssl req -newkey rsa:4096 -nodes -sha256 -keyout /root/certs/domain.key -x509 -days 365 -out /root/certs/domain.crt Then put the certificate generated by certs in the /etc/docker/ directory Then restart the docker service sudo service docker restart After reboot Supplement: Configure HTTPS certificate using nginx installed with Docker Create a new ssl.conf and put the file in the conf.d folderserver { listen 443; server_name localhost; ssl on; root html; index index.html index.htm; ssl_certificate cert/1533224843981.pem; ssl_certificate_key cert/1533224843981.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { root html; index index.html index.htm; } } Note: cert is a relative path. If it is a Linux folder, it is in the nginx.conf folder. If it is a Windows folder, it is in the conf folder. rundocker run --name mynginx -p 443:443 -v /opt/data/nginx/nginx.conf:/etc/nginx/nginx.conf -v /opt/data/nginx/conf.d:/etc/nginx/conf.d/default.conf -v /opt/data/nginx/www:/www -v /opt/data/nginx/cert:/etc/nginx/cert -v /opt/data/nginx/ssl.conf:/etc/nginx/conf.d/ssl.conf -d nginx The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: How to invert the implementation of a Bezier curve in CSS
>>: MySQL uses frm files and ibd files to restore table data
First, the principle of esp8266 publishes message...
01. Command Overview The paste command will merge...
Table of contents 0. Background 1. Installation 2...
Let's first look at the definition of the pos...
During the work development process, a requiremen...
SELECT * FROM table name limit m,n; SELECT * FROM...
There are many tags in XHTML, but only a few are ...
When I was asked this question, I was ignorant an...
When using the <html:reset> tag, sometimes w...
Windows installation mysql-5.7.17-winx64.zip meth...
Table of contents background 1. Document Descript...
To put it simply, the IP of the virtual machine u...
Table of contents What is JSI What is different a...
Click here to return to the 123WORDPRESS.COM HTML ...
First, let’s look at the GIF operation: Case 1: S...