docker
Posted 608088
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker相关的知识,希望对你有一定的参考价值。
docker 安装
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install docker-ce-18.06.1.ce-3.el7
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]
}
systemctl restart docker
# 通讯
docker network create ley
docker network ls
# 拷贝
docker cp d:\\a.txt mysql8:/tmp
组件
redis
docker pull redis:6.0.6
mysql
docker pull mysql:8.0.20
apollo
docker pull apolloconfig/apollo-configservice
docker pull apolloconfig/apollo-adminservice
docker pull apolloconfig/apollo-portal
https://github.com/apolloconfig/apollo-build-scripts/tree/master/sql
- apolloconfigdb.sql
- apolloportaldb.sql
docker exec -it mysql /bin/bash
# mysql -uroot -p123456 < apollo/scripts/sql/apolloportaldb.sql
# mysql -uroot -p123456 < apollo/scripts/sql/apolloconfigdb.sql
clickhouse
docker pull yandex/clickhouse-server
docker pull yandex/clickhouse-clinet
以上是关于docker的主要内容,如果未能解决你的问题,请参考以下文章