일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- chatgpt #gpt #챗지피티 #ai
- 도커 #docker #docker-compose.yml #도커컴포즈 #배포 #spring #mysql #docker-compose
- /
- 도커 #Docker #배포 #Spring #MySQL #백엔드배포
- Today
- Total
목록DevOps (18)
개발자 데뷔!

Docker 공식 reference) https://docs.docker.com/engine/reference/commandline/container/ Docker File -> (build) -> Docker Image -> (run) -> Docker Container Container 생성 Container 실행 Container 상태 확인 Container 정지 Container 재시작 Container 삭제 컨테이너 명령어 모음 docker container run --name [컨테이너명 지정] -d [기반 이미지명] {컨테이너가 실행되었을 때 실행할 커맨드} //docker container run --name ping_test -d centos /bin/ping localhost docke..

https://hub.docker.com/ - 도커 이미지 중, 자주 사용하는 이미지들은 별도의 공식 저장소에 저장해서 사용한다. - 자주 사용하는 sw 도구를 해당 기업에서 official 이미지로 만들어 docker hub에 제공 * 누구나 이미지를 올릴 수 있기 때문에 인증된 이미지만 사용 * tags에서 버전 확인 가능 이미지 다운로드 docker image [sub-command] command 목록 아래 명령어를 입력하면, [sub-command]위치에 올 수 있는 커맨드 목록이 쭉 출력된다 docker image commands 내용 build Build an image from a Dockerfile history Show the history of an image import Import..

docker container run -d --name redis_db -p 6379:6379 redis redis는 기본적으로 6379 포트번호 사용함 Redis 데이터 저장 후 조회하기 telnet localhost {포트번호}// {포트번호}와 연결된 컨테이너로 접속 set {key값} {value값}// {key}-{value}값 저장 get {key값}// {key}값 조회 quit// db컨테이너에서 빠져나옴 ex) telnet localhost 6379// 6379 포트와 연결된 redis 컨테이너 내부 접속 set mykey a1234// {key}-{value}값이 {mykey}-{a1234}인 데이터 저장 get mykey// {key}값이 mykey인 {value}값 출력 quit//..

Nginx 웹서버 실행 예시) docker container run -d --name nginx_webserver -p 8080:80 nginx * cosway : -linux에서 ASCII그림을 그려주는 명령어 옵션) 옵션 역할 예시 --name 컨테이너 생성과 동시에 이름 지정 -p [{host port} : {container port}] 포트 지정 및 연결 (host port와 container port를 mapping 함 ) -p 8080:80 동작) - nginx라는 이름의 이미지파일 실행 nginx 라는 이름의 이미지 파일 찾음 로컬에서 nginx 이미지 검색 없으므로, 공식 저장소에서 nginx 이미지 검색 후 다운로드 다운로드 받은 이미지를 백그라운드로 컨테이너 실행 포트 연결 {host..

아래 google - Cloud Shell 에서 실습진행 - https://shell.cloud.google.com 개발환경 확인 uname -a// 현재 사용 HW 정보 표출 cat /etc/*release// 현재 사용 OS 정보 표출 docker -v// docker 버전 확인 컨테이너 실행 docker container run {도커이미지명:버전명} {리눅스 명령어} 예시) docker container run docker/whalesay cosway hello-world! docker container run centos// 라이브러리 docker container run -d centos sleep 100// 백그라운드 100동안 유지 docker container run -d --name n..
이전 글에서, 1. ubuntu 이미지 파일을 다운로드 받았고, 2. VM VirtualBox를 다운로드 받아 기본 환경설정을 마쳤다. VM VirtualBox에서 생성한 가상머신 인스턴스에 ubuntu 설치 이미지 파일을 올렸으므로, 이번 글에서는 그 가상머신 인스턴스를 시작해 ubuntu 기본세팅을 해볼 것이다. ubuntu 환경설정) VM VirtualBox 실행 후, 가상머신 인스턴스 클릭 → 상단의 초록색 시작 버튼클릭 '한국어' 언어 설정 → 'ubuntu 설치' 버튼 클릭 '키보드 레이아웃' 에서 Korean → 'Korean[101/104 key compatible]' 선택 '업데이트 및 기타 소프트웨어'에서 '일반설치' 선택 '설치 형식'에서 '디스크를 지우고 Ubuntu 설치' 선택 '..
가상 머신 : Virtual Box VM = Virtual Machine (Virtual Box) = 가상머신 이 글에서 모든 단어는 같은 의미이다. * 다운로드 홈페이지 https://www.virtualbox.org/wiki/Downloads Downloads – Oracle VM VirtualBox Download VirtualBox Here you will find links to VirtualBox binaries and its source code. VirtualBox binaries By downloading, you agree to the terms and conditions of the respective license. If you're looking for the latest Virt..
설치버전 : Ubuntu Linux 20.04 LTS * 우분투 다운로드 공식 홈페이지 ubuntu.com → 엄청느림 * 카카오미러 → 빠르게 다운받을 수 있음 https://mirror.kakao.com/ubuntu-releases/ Ubuntu Releases These older Ubuntu releases are now in Extended Maintenance (ESM): We are happy to provide hosting for the following projects via the cdimage server. While they are not commercially supported by Canonical, they receive full support from their commun..