# docker설치 # 도메인연결 (docker.buk.io) # 443포트열기 # certbot 설치 add-apt-repository ppa:certbot/certbot -y apt update apt install certbot -y # 인증서 발급 certbot certonly --standalone --preferred-challenges http --non-interactive --staple-ocsp --agree-tos -m support@buk.io -d docker.buk.io # 갱신용 cron cat <<EOF > /etc/cron.d/letencrypt SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 30 2 * * 1 root /usr/bin/certbot renew >> /var/log/letsencrypt-renew.log && cd /etc/letsen