반응형
1. ubuntu 이미지 다운로드
cmd창에서 docker pull ubuntu 수행
2. 특정 폴더에 docker-compose.yml 파일 생성
version: "3"
services:
server1:
image: ubuntu:latest
ports:
- "8083:8083"
stdin_open: true
tty: true
server2:
image: ubuntu:latest
ports:
- "8084:8084"
stdin_open: true
tty: true
3. cmd창 해당폴더에서 docker-compose up 실행
4. ubuntu에 접속하여 필요한 package설치
#apt install -y git
반응형
'Software Architecture > Docker' 카테고리의 다른 글
[ Docker ] Docker 명령어 모음 (0) | 2023.01.03 |
---|---|
기초 학습 (0) | 2021.07.06 |