Docker Compose를 사용하여 Omnibus GitLab 설치

Docker Compose Omnibus GitLab

2020. 10.

1. ................................................................................................................................................................3 1.1. .......................................................................................................................................... 3

2. Docker Engine .......................................................................................................................................4 2.1. Repository ................................................................................................................................. 4 2.2. Docker Engine ........................................................................................................................... 5 2.3. Sudo docker ............................................................................................. 5

3. Docker Compose .................................................................................................................................. 6 3.1. Compose ................................................................................................................................... 6

4. GitLab ................................................................................................................................................... 7 4.1. GitLab Docker ........................................................................................................................7 4.2. ................................................................................................................................ 7 4.3. docker-compose.yml ....................................................................................................... 7 4.4. Docker Compose GitLab .....................................................................................8 4.5. GitLab .............................................................................................................................. 8

1.

1.1.

1.1.1. Ubuntu 18.04 LTS Docker Compose Omnibus GitLab .

1.1.2. Ubuntu 18.04 LTS Docker Engine Docker Compose , Omnibus GitLab . Docker Linux ( CentOS, Debian, Fedora, Ubuntu ) , GitLab , , Helm chart , .

2. Docker Engine

Host Machine Docker CE , Docker Repository

. Repository Docker Engine .

2.1. Repository

apt apt HTTPS repository

.

$ sudo apt-get update $ sudo apt-get install \

apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common

Docker GPG .

$ curl -fsSL | sudo apt-key add -

Fingerprint() 8 , Fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81

803C 0EBF CD88 .

$ sudo apt-key fingerprint 0EBFCD88

pub rsa4096 2017-02-22 [SCEA]

9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88

uid

[ unknown] Docker Release (CE deb)

sub rsa4096 2017-02-22 [S]

Stable Repository( ) .

$ sudo add-apt-repository \ "deb [arch=amd64] \ $(lsb_release -cs) \ stable"

Docker .

$ sudo apt-cache policy docker-ce docker-ce:

Installed: (none) Candidate: 5:19.03.12~3-0~ubuntu-bionic Version table:

5:19.03.12~3-0~ubuntu-bionic 500 500 bionic/stable amd64 Packages

5:19.03.11~3-0~ubuntu-bionic 500 500 bionic/stable amd64 Packages ...

docker-ce

.

2.2. Docker Engine

apt Docker Engine containerd .

$ sudo apt-get update $ sudo apt-get install docker-ce docker-ce-cli containerd.io

hello-world Docker CE .

$ sudo docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 0e03bdcc26d7: Pull complete Digest: sha256:7f0a9f93b4aa3022c3a4c147a449bf11e0941a1fd0bf4a8e6c9408b2600777c5 Status: Downloaded newer image for hello-world:latest

Hello from Docker! This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.

To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:

For more examples and ideas, visit:

2.3. Sudo docker

Docker daemon /var/run/docker.sock unix domain socket(IPC socket) , root docker . sudo docker , 'docker' .

$ sudo usermod -aG docker ubuntu

Ubuntu SSH .

sudo docker .

$ docker ps -a

CONTAINER ID 1faf80b32fa3

IMAGE

COMMAND

hello-world "/hello"

CREATED

STATUS

PORTS

5 minutes ago Exited (0) 5 minutes ago

NAMES compassionate_wing

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download