2 Install Myd-Data-Server » 이력 » 버전 6
이름없음, 2023/07/12 02:55
1 | 3 | 이름없음 | h1. Install Utils for Myd-Data-Server |
---|---|---|---|
2 | 1 | 이름없음 | |
3 | h2. Git 설치 |
||
4 | |||
5 | Git repository로부터 서버 구성 요소를 다운로드 받기 위해 git을 설치해야 합니다. |
||
6 | |||
7 | |||
8 | <pre><code class="shell"> |
||
9 | sudo apt install git |
||
10 | </code></pre> |
||
11 | |||
12 | |||
13 | |||
14 | h2. Docker 설치 |
||
15 | |||
16 | Linux 상에서 docker container 를 구동하기 위해 docker engine 을 설치해야 합니다. |
||
17 | Ubuntu 기준으로는 아래와 같이 진행할 수 있습니다. |
||
18 | |||
19 | |||
20 | <pre><code class="shell"> |
||
21 | sudo apt-get update |
||
22 | sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
||
23 | </code></pre> |
||
24 | |||
25 | 5 | 이름없음 | Ref: https://docs.docker.com/engine/install/ubuntu/ |
26 | 1 | 이름없음 | |
27 | 5 | 이름없음 | docker-ce 패키지를 찾을 수 없다는 에러가 나오는 경우 아래의 명령어를 입력해 줍니다. |
28 | 1 | 이름없음 | |
29 | 5 | 이름없음 | <pre><code class="shell"> |
30 | $ sudo apt-get update |
||
31 | $ sudo apt-get install ca-certificates curl gnupg lsb-release |
||
32 | $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
||
33 | $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
||
34 | $ apt-get update |
||
35 | $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin |
||
36 | </code></pre> |
||
37 | 1 | 이름없음 | |
38 | h2. docker-compose 설치 |
||
39 | |||
40 | Linux 내에 container 배포를 위해서는 docker-compose 설치가 필요합니다. |
||
41 | |||
42 | |||
43 | <pre><code class="shell"> |
||
44 | 6 | 이름없음 | $ sudo curl -SL https://github.com/docker/compose/releases/download/v2.20.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose |
45 | 1 | 이름없음 | ... |
46 | $ sudo chmod +x /usr/local/bin/docker-compose |
||
47 | $ docker-compose --version |
||
48 | 6 | 이름없음 | Docker Compose version v2.20.0 |
49 | 1 | 이름없음 | </code></pre> |
50 | |||
51 | |||
52 | |||
53 | Ref: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04 |
||
54 | |||
55 | --- |
||
56 | 4 | 이름없음 | |
57 | **다음 장으로 이동: [[3 Install Myd-Data-Server]]** |