--- tags: linux --- <style> @keyframes bbb {/*轉圈效果*/ 0% { transform: rotate(0deg) scale(1.5, 1.5); } 50% { transform: rotate(180deg) scale(1.5, 1.5); } 100% { transform: rotate(360deg) scale(1.5, 1.5); } } .ui-user-icon/*變更頭貼*/, .ui-avatar/*頭貼*/, .fa-plus/*新增文件符號*/ { animation: bbb .75s linear infinite; } body { cursor: url("https://cur.cursors-4u.net/games/gam-11/gam1090.png"), auto; } </style> # Docker Registry > [name=Nick Chang] [官方教學](https://docs.docker.com/registry/deploying/) 透過Goddady購買域名後,將所有crt pem塞入同一檔案內 ``` cat *.crt *.pem > mix.crt ``` 接著因為docker在引用憑證時會有編碼問題,所以需要將crt和key的檔案第一行新增空格行 ``` vim mix.crt vim *.key ``` 將著創建certs的資料夾 ``` mkdir certs ``` 然後輸入運行指令 ``` docker run -d --restart=always --name registry -v /home/ubuntu/certs:/certs -e REGISTRY_HTTP_ADDR=0.0.0.0:443 -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/mix.crt -e REGISTRY_HTTP_TLS_KEY=/certs/diresoft.net.key -p 443:443 registry:latest ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up