-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSetting Docker
More file actions
38 lines (17 loc) · 808 Bytes
/
Setting Docker
File metadata and controls
38 lines (17 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Setting Docker
curl -sSL get.docker.io | sh -c
Seting Docker compose
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
Setting traefik binary
yum install -y wget
wget https://github.com/containous/traefik/releases/download/v1.4.6/traefik
Get template file config
wget https://raw.githubusercontent.com/containous/traefik/master/traefik.sample.toml
Grant permission exec
chmod 755 traefik
cp traefik.sample.toml traefik.toml && rm -rf traefik.sample.toml
Setting traefik img docker
Sử dụng các đặc quyền bên trong containers
docker run -it --privileged centos:7 /usr/sbin/init