# Docker

# 1.2 docker安装

# 1.2.1 安装

git clone https://github.com/douyu/juno-install.git

cd juno-install

docker build -t juno-install:v1  -f ./docker/all-in-one/Dockerfile ./

docker run -itd  --name juno-demo -p 50000:50000 -p 50004:50004 --privileged=true juno-install:v1 /usr/sbin/init

docker exec -it juno-demo /bin/bash

./install.sh

1
2
3
4
5
6
7
8
9
10
11
12

# 1.2.2 调试

#查看mysql
mysql -uroot
#查看etcd里内容
etcdctl get "" --prefix
#查看go
go version
#查看pprof
go tool pprof -http=":8081" http://127.0.0.1:50004/debug/pprof/profile
1
2
3
4
5
6
7
8