You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
889 B
Bash
34 lines
889 B
Bash
#!/bin/bash
|
|
|
|
# Portainer 설치 스크립트
|
|
|
|
echo "🐳 Portainer 설치 시작..."
|
|
|
|
# Portainer 볼륨 생성
|
|
echo "📦 Portainer 데이터 볼륨 생성..."
|
|
docker volume create portainer_data
|
|
|
|
# Portainer 컨테이너 실행
|
|
echo "🚀 Portainer 컨테이너 시작..."
|
|
docker run -d \
|
|
-p 8000:8000 \
|
|
-p 9443:9443 \
|
|
--name portainer \
|
|
--restart=always \
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
-v portainer_data:/data \
|
|
portainer/portainer-ce:latest
|
|
|
|
echo "✅ Portainer 설치 완료!"
|
|
echo ""
|
|
echo "🌐 접속 정보:"
|
|
echo " - HTTPS: https://localhost:9443"
|
|
echo " - HTTP: http://localhost:8000"
|
|
echo ""
|
|
echo "📝 첫 실행 시 관리자 계정을 만들어주세요."
|
|
echo "⏰ 5분 이내에 접속하지 않으면 설정이 만료됩니다."
|
|
|
|
# 컨테이너 상태 확인
|
|
echo ""
|
|
echo "🔍 Portainer 컨테이너 상태:"
|
|
docker ps | grep portainer |