Skip to content

Commit

Permalink
fix(scripts): docker 관련 명령 모두 sudo로 실행
Browse files Browse the repository at this point in the history
  • Loading branch information
kaswhy committed Nov 13, 2024
1 parent ca09fff commit 3dd2a92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions scripts/initialize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ git clone https://github.com/PetToothFairy/Server.git

# docker-compose.yml 파일을 Server 디렉토리로 복사
cp /home/ubuntu/docker-compose.yml /home/ubuntu/Server/

sudo usermod -aG docker ubuntu
4 changes: 2 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cd /home/ubuntu/Server
docker-compose build
docker-compose up -d
sudo docker-compose build
sudo docker-compose up -d
4 changes: 2 additions & 2 deletions scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cd /home/ubuntu/Server

docker-compose down
docker image prune -a
sudo docker-compose down
sudo docker image prune -a

cp docker-compose.yml /home/ubuntu

Expand Down

0 comments on commit 3dd2a92

Please sign in to comment.