Docker Volume 사용하기
-
도커 Volume 사용법 1
-
도커 Volume 사용법 2
-
도커 Volume 사용법 3
도커 Volume 사용법 1
도커 Volume 사용법 2
도커 Volume 사용법 3

2. SSH 키

VM 인스턴스에서 > 만들기 클릭
STS (Spring Tool Suite) 에서 Spring Start Project 를 생성 하면 아래와 같은 오류가 발생한다.
Project build error: Non-resolvable parent POM for com.example:TEST:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:2.1.4.RELEASE from https://
repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not
transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.4.RELEASE from/to central (https://repo.maven.apache.org/maven2): connect timed out and ‘parent.relativePath’ points
at no local POM
문제는 회사의 proxy 서버에 의해 repository의 파일을 업데이트 하지 못해서 발생하는 문제이다.
이런 경우에는 Maven Home Directory 에 settings.xml 파일에 프록시 세팅을 변경해 주면 해결이 된다.
참조
tutorial
버전 정보 조회
$ kubectl version --short
쿠버네티스에서 사용 가능한 오브젝트 리스트 조회
$ kubectl api-resources
object / controller 리스트 조회
$ kubectl get {objectType}
$ kubectl get po
NAME READY STATUS RESTARTS AGE
hello-node-775ff78448-ssbk2 1/1 Running 0 21s
object 생성하기
$ kubectl create {objectType} {objectName}$ kubectl create deployment hello-node -- image=registry.k8s.io/echoserver:1.4deployment.apps/hello-node created
$ kubectl apply -f {file name} $ kubectl apply -f hello-deploy.yaml
deployment.apps/hello-node created
object 삭제하기
$ kubectl delete {objectType} {objectName}
$ kubectl delete deploy hello-node
deployment.apps "hello-node" deleted
Markdown Tutorial:
Table Gerator:
| Style | Syntax |
|---|---|
| Strong | Surround text with two asterisks (**) or two underscore characters (__) |
| Emphasis | Surround text with single asterisks (*)or underscore characters (_) |
| Strikethrough | Surround text with two tildes (~~) |
| Code | Surround text with single backquotes ( `` ) |
| Combinations | Surround text with single underscore characters or two tildes inside two asterisks. Surround text with three asterisks to apply strong emphasis. |
Big Header
=========
Small Header
------------
# Header H1
## Header H2
### Header H3
#### Header H4
##### Header H5
###### Header H6
___, ---, *** 를 사용하면 horizontal line이 그려진다.This is first line
___
This is second line
---
This is third line
***
This is fourth line
> This is first quote
> > This is second quote
> > > This is third quote
> This is first quote > > This is second quote > > > This is third quote
``` 로 묶는다.@Service
public class PolicyHandler{
public void created_mileage(@Payload ReservationCreated reservationCreated){
Mileage.accumulateMileage(event);
}
}
-, *, + 중 하나를 쓰면 된다.List ordered / unodered:
1. Fix usability problem
2. Clean up the page
* Make the headings bigger
2. Push my changes
3. Create code review
* Describe my changes
* Assign reviewers
* Ask for feedback
List ordered / unodered:
:---, :---:, ---: 을 활용하여 value 값을 정렬 할 수 있다.| Month | Assignee | Backup |
| -------- | -------- | ------ |
| January | Dave | Steve |
| February | Gregg | Karen |
| March | Diane | Jorge |
Month | Assignee | Backup
---:|:---:| ---
**January** | Dave | _Steve_
**February** | Gregg | _Karen_
**March** | Diane | _Jorge_
| Month | Assignee | Backup |
|---|---|---|
| January | Dave | Steve |
| February | Gregg | Karen |
| March | Diane | Jorge |
| Month | Assignee | Backup |
|---|---|---|
| January | Dave | Steve |
| February | Gregg | Karen |
| March | Diane | Jorge |
[inline link](https://www.jetbrains.com)
[inline link with tooltip](https://www.jetbrains.com "JetBrains: Development Tools for Professionals and Teams")
[reference link][1]
[1]: https://www.jetbrains.com
inline link
inline link with tooltip
reference link
Inline:

Reference style:
![Markdown logo][logo]
[logo]: https://upload.wikimedia.org/wikipedia/commons/thumb/4/48/Markdown-mark.svg/208px-Markdown-mark.svg.png "Markdown"
[](https://www.youtube.com/watch?v=rhAunB7UQFQ)
Inline:
![]()
Reference style:
![]()
Here are a few examples of backslash escapes:
\*not emphasis*
\`not an inline code span`
1\. not an ordered list
\* not an unordered list
\# not a heading
\This is not a backslash escape - the escaped character is not a markup character.
Here are a few examples of backslash escapes:
*not emphasis*
`not an inline code span`
1. not an ordered list
* not an unordered list
# not a heading
\This is not a backslash escape – the escaped character is not a markup character.
mkdir test
cd test
npm install express-generator -g
express --view=pug test
cd test
npm install
SET DEBUG=test:* & npm start

http://localhost:3000/

Public Docker Hub 에 Docker Image 를 올리기 위해서는 먼저 Docker Hub 에 회원가입을 해야 합니다. Docker Hub 공식 사이트 링크
docker login -u [USER_ID]
password를 입력하여 성공적으로 로그인이 되면 Login Succeeded 문구가 보입니다.
Docker hub로 image 를 push 하기 위해서는 해당 image 에 반드시 tag 가 있어야 합니다.
docker image에 tag 추가하기
docker tag [테그명] [User Name]/[image 명]
Docker Hub 에 push 하기
docker push [User Name]/[image명]
docker hub image 검색하기
docker search [image명]
docker hub 에서 pull 하기
docker pull [image명]
WSL2 를 사용하여 Docker 설치를 하고 나니 유난히 fan소음이 크게 들립니다.
Windows 작업관리자를 통해 프로세스 상태를 확인해 보니 Vmmem 이라는 프로세스가 메모리를 6GB 나 차지하고 있었습니다.
.wslconfig 파일을 설정을 통해서 wsl 메모리 제한을 줄 수 있습니다.

Ubuntu 에서 메모리 확인하기
free -h
WSL에 메모리 할당 하기 C:\User\{유저네임}\.wslconfig
[wsl2]
memory=2GB
swap=0
localhostForwarding=true
.wslconfig 적용 후 메모리를 체크해 보면 total Memory가 12GB –> 2GB 로 준 것을 확인 할 수 있습니다.
[wslconfig 적용 전]

[wslconfig 적용 후]
