hello/deployment/start-rancher.sh

32 lines
772 B
Bash
Raw Normal View History

2024-03-19 14:12:40 +08:00
#/bin.bash
docker run \
--name rancher \
--privileged \
-d \
--restart=always \
2024-04-05 17:19:41 +08:00
--user root \
2024-03-19 14:12:40 +08:00
-e SSL_CERT_DIR=/apps/ssl \
--add-host raw.githubusercontent.com:185.199.109.133 \
2024-04-05 17:19:41 +08:00
--add-host repository.umisen.com:10.220.10.17 \
-v ./registries.yaml:/etc/rancher/k3s/registries.yaml \
2024-04-03 14:02:28 +08:00
-v ./data:/data \
2024-03-19 17:15:45 +08:00
-p 20443:443 \
-p 80:30080 \
-p 443:30443 \
2024-03-19 14:12:40 +08:00
rancher/rancher
# -v $(pwd)/ca.crt:/apps/ssl/nf_ca.crt \
# --add-host repository.umisen.com:10.220.10.17 \
2024-03-19 15:39:06 +08:00
# --network=host \
2024-03-19 14:12:40 +08:00
# zypper addrepo https://download.opensuse.org/repositories/network:utilities/SLE_15_SP5/network:utilities.repo
# zypper refresh
2024-03-19 15:39:06 +08:00
# zypper install net-tools-deprecated
2024-04-05 17:19:41 +08:00
# example registries.yaml
# configs:
# "repository.umisen.com":
# tls:
# insecure_skip_verify: true