wsl2 // window에서 실행할 때 wsl2 이상에서 정상적으로 작동하기 때문에 업데이트 해야함
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi (설치 링크)
도커 설치 ~ 실행
sudo su
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update && apt install docker-ce docker-ce-cli containerd.io
systemctl enable docker && service docker start
컨테이너 만들기
docker run -dp 80:80 docker/getting-started
컨테이너 확인
docker ps -a
컨테이너 조작
docker start, stop, restart, attach, rm [컨테이너 이름 or 아이디]
컨테이너 빌드
docker build -t getting-started .
컨테이너 실행
docker run -dp 3000:3000 getting-started
컨테이너 공유
docker login -u username
docker tag getting-started username/getting-started
docker push username/getting-started
network 확인
docker network ls
docker compose 실행
docker-compose up -d // yml파일이 있는 경로로 가야함
'기타' 카테고리의 다른 글
| SVN ) SVN locked 문제 해결 (0) | 2022.08.11 |
|---|---|
| Docker ) network (bridge) (0) | 2022.07.25 |
| Docker ) 에러 (0) | 2022.07.25 |
| Docker ) 설치, 기본개념 (0) | 2022.07.18 |
| Android Studio ) Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager (0) | 2022.07.04 |