docker hub(3)
-
Docker compose 파일 작성 with PostgreSQL
설치 도커 설치는 아래 링크에서 진행할 수 있다. https://www.docker.com/products/docker-desktop/ Docker Desktop: The #1 Containerization Tool for Developers | Docker Docker Desktop is collaborative containerization software for developers. Get started and download Docker Desktop today on Mac, Windows, or Linux. www.docker.com 설치 확인 docker --version 구글에 docker hub 검색 https://hub.docker.com/ Docker Hub Container Image..
2023.12.14 -
EC2 ubuntu 인스턴스 & Docker compose & Docker hub
EC2 인스턴스를 ubuntu 로 생성한다. https://muyeon95.tistory.com/187 AWS EC2 배포하기 선행작업 https://muyeon95.tistory.com/186 github SSH Repository [ git ] - 우선 repository 를 생성한다. - SSH 키를 발급받는다. 생성한 repository 를 사용하기 위해서 로컬환경에서 깃허브를 사용하기 위해 인증을 muyeon95.tistory.com Dockerfile FROM node:18-buster WORKDIR /app COPY . . RUN npm i RUN npm i pm2 -g RUN npm run build RUN npm run migration:run EXPOSE 8080 COPY .env /a..
2023.08.14 -
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
도커 허브를 배포하는중에 발생했던 문제이다. 아래는 수행했던 명령어이다. docker build -f Dockerfile -t . docker images docker run -d -p 8080:8080 docker ps docker stop [컨테이너_ID 또는 이름] docker tag ticketnest:latest munyeolyoon/ticketnest:latest -> docker tag [이미지이름:태그 바꿀이름:태그] docker push munyeolyoon/ticketnest -> docker push [계정명/레포티토리명] EC2 에서 docker 수행 docker login ID 입력 PW 입력 도커 허브 이미지 pull sudo docker pull munyeolyoon/ticke..
2023.08.14