목록컴퓨터 (4)
렴소네 블로그
자바로 프로젝트를 진행하다보면 Get, Set, Equals, ToString 등등 매번 비슷하고 반복적인 코드들을 작성하는 경우가 많다. 이러한 코드들은 Boilerplate(사전에서 검색해보면 표준문안, 각종 문서에 반복적으로 인용되는 문서의 한 부분이라고 한다) 이러한 Boilerplate들을 줄이기 위해서 나온게 Lombok 이다. Lombok은 애노테이션만으로 자바에서 반복적으로 선언하는 Get, Set, null체크, toString, EqualsAndHashCode 등을 확 줄여준다. ( 출처 : http://jnb.ociweb.com/jnb/jnbJan2010.html ) @Data 애노테이션 하나로 Boilerplate 들을 한번에 생성한 모습이다. 그럼 제공하는 애노테이션들을 하나씩 정..
DOCKER_API_VERSION The API version to use (e.g. 1.19)DOCKER_CONFIG The location of your client configuration files.DOCKER_CERT_PATH The location of your authentication keys.DOCKER_DRIVER The graph driver to use.DOCKER_HOST Daemon socket to connect to.DOCKER_NOWARN_KERNEL_VERSION Prevent warnings that your Linux kernel is unsuitable for Docker.DOCKER_RAMDISK If set this will disable ‘pivot_root’...
옵션 --config=~/.docker Location of client config files 사용자 설정파일의 경로-D, --debug Enable debug mode 디버그 모드 활성화-H, --host=[] Daemon socket(s) to connect to 데몬모드로 실행시 소켓경로 설정-h, --help Print usage 도움말-l, --log-level=info Set the logging level log 수준 설정--tls Use TLS; implied by --tlsverify tls 사용--tlscacert=~/.docker/ca.pem Trust certs signed only by this CA CA 인증서 경로--tlscert=~/.docker/cert.pem Path t..
이미지 생성할때는 Dockerfile이 있는 디렉터리에서 docker build 명령을 사용.Dockerfile은 형식으로 작성.#은 주석, 명령은 대소문자 구분하지 않지만 보통 대문자로 작성. 각 명령은 독립적으로 실행.--tag 또는 -t 옵션으로 이미지 이름을 설정할수 있고, Docker Hub에 이미지를 올리려면 /shin/image 처럼 /앞에 사용자명을 붙이면 된다.이미지 이름을 설정하지 않아도 이미지는 설정되지만, 이때 이미지를 사용하려면 이미지ID를 이용해야한다. 명령.dockerignore Dockerfile과 같은 디렉터리에 있는 모든 파일을 Context라고 하는데 그중 이미지를 생성할때 필요없는 파일들은 .dockerignore파일에 작성하면 된다. Docker는 Go언어로 작성되어..