개발 기록

211115 도커 본문

TIL

211115 도커

수염차 2021. 11. 15. 17:00

**도커란?!

-애플리케이션을 개발 및 실행하기 위한 개방형 플랫폼. 도커를 사용하면 애플리케이션을 인프라에서 분리할 수 있으므로 소프트웨어를 빠르게 제공할 수 있다. (컨테이너 기반의 오픈소스 가상화 플랫폼)

도커는 컨테이너라고 하는 느슨하게 격리된 환경에서 애플리케이션을 패키징하고 실행할 수 있는 기능 제공. 이미지의 실행 가능한 인스턴스

다양한 프로그램, 실행환경을 컨테이너로 추상화하고 동일한 인터페이스를 제공하여 프로그램의 배포 및 관리를 단순하게 해준다.

이미지는 컨테이너 실행에 필요한 파일과 설정값 등을 포함하고 있는것 . 도커 컨테이너를 만들기위한 지침 읽기 전용 템플릿. 

 

 

**도커 실습하다 생긴 오류들 

(웃긴게 몇 시간 후에 삭제 하고 첨부터 다시 해보니까 에러 하나도 안 되고 잘 됨 뭘까)

 

https://pythontoomuchinformation.tistory.com/404

 

[에러 잡자] Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - Ports are not avail

에러 내용 Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - Ports are not available: listen tcp 0.0.0.0:3306: bind: An attempt was made to access a socket..

pythontoomuchinformation.tistory.com

 

 

https://7942yongdae.tistory.com/128

 

Error - Failed to configure a DataSource 에러 원인과 해결 방법

Failed to configure a DataSource 에러와 원인과 해결 방법 메시지 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. **************..

7942yongdae.tistory.com

 

http://www.herlitz.nu/2020/12/01/docker-error-ports-are-not-available-on-windows-10/

 

Docker error "Ports are not available" on Windows 10

Windows 10 can sometimes hog ports and sockets preventing us from using them with services like docker. This renders error like this docker : Error response from daemon: Ports are not available: listen tcp 0.0.0.0:1433: bind: An attempt was made to access

www.herlitz.nu

 

**-plain.jar 안 생기게 하기

https://stackoverflow.com/questions/67663728/spring-boot-2-5-0-generates-plain-jar-file-can-i-remove-it

build.gradle

jar {
    enabled = false
}

빌드시 gradle build -x test 입력해도 동일 이유는 모름..

 

 

 

**

argument와 parameter

Parameter 매개변수 함수와 메서드 입력 변수(Variable) 명
Argument 전달인자, 인자 함수와 메서드의 입력 값(Value)

 

다음 cancat 함수 정의에서 str1과 str2는 parameter 입니다.

def cancat(str1, str2):
  return a +" "+ b

 

 

cancat 함수를 호출할 때, 입력값 “parameter”와 “argument”는 argument입니다.

cancat("parameter", "argument")

 

출처

argument와 parameter 차이점

초보를 위한 도커 안내서 - 도커란 무엇인가?

도커 공식문서

'TIL' 카테고리의 다른 글

211118 타임어택(1001) 스프링으로 바꾸기  (0) 2021.11.18
211117 스프링 구현테스트 복습  (0) 2021.11.17
211114 WIL  (0) 2021.11.15
211111 TIL 스프링  (0) 2021.11.12
211110 스프링 (IOC,DI)  (0) 2021.11.10
Comments