Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中,然后发布到任何流行的 Linux或Windows 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。下面就介绍一些常用软件的安装,后期在补充更多!
大家可以关注公众号,程序员社群
docker安装mysql
docker pull registry.cn-hangzhou.aliyuncs.com/wanggw/mysql:8.0
docker run --name mysql8 -d --restart=unless-stopped
–log-driver json-file --log-opt max-size=1000
–log-opt max-file=1 -p 3307:3306
-e MYSQL_ROOT_PASSWORD=“root” -e TZ=“Asia/Shanghai”
-v /data/wang/mysql/data/:/var/lib/mysql
registry.cn-hangzhou.aliyuncs.com/wanggw/mysql:8.0
–character-set-server=utf8 --collation-server=utf8_general_ci
docker 安装nginx
docker pull registry.cn-hangzhou.aliyuncs.com/wanggw/nginx:base
docker run --name=rproxy -d --log-driver none --net=host
–privileged -p 80:80
-v /data/wang/nginx/html/custom/:/data/nginx/html/custom/
-v /data/wang/logs/sierac-rproxy/:/data/nginx/logs/
-v /data/wang/conf/:/etc/nginx/conf.d/conf/
–restart=unless-stopped -t
registry.cn-hangzhou.aliyuncs.com/wanggw/nginx:base
docker安装redis
docker pull registry.cn-hangzhou.aliyuncs.com/wanggw/redis:latest
docker run --name redisB --memory=“2048m”
–restart=always -p 6381:6379
-v /data/wang/redis:/data1 -d
registry.cn-hangzhou.aliyuncs.com/wanggw/redis:latest
redis-server --appendonly yes --protected-mode no
–requirepass “root”
docker安装Hbase
docker pull harisekhon/hbase:latest
docker run -d -h myhbase -p 2181:2181
-p 16000:16000 -p 16010:16010 -p 16201:16201
-p 16301:16301 --name hbase harisekhon/hbase:latest
docker安装mycat
docker pull registry.cn-hangzhou.aliyuncs.com/wanggw/mycat:1.6
docker run -d --name=mycat --memory=“2048m”
–restart=unless-stopped -p 8066:8066 -p 9066:9066
-e TZ=“Asia/Shanghai”
-v /data/mycat/logs:/usr/local/mycat/logs
-v /data/mycat/conf:/usr/local/mycat/conf
registry.cn-hangzhou.aliyuncs.com/wanggw/mycat:1.6
docker安装nacos
docker pull nacos/nacos-server
docker run --env MODE=standalone
–name nacos -d -p 8848:8848 nacos/nacos-server
docker安装postgresql
docker pull sameersbn/postgresql:9.4-12
docker run --name=postgresql-redmine -d
–env=‘DB_NAME=redmine_production’
–env=‘DB_USER=redmine’ --env=‘DB_PASS=password’
sameersbn/postgresql:9.4-12
docker安装redmine
docker pull sameersbn/redmine:3.2.0-4
docker run --name=redmine -d
–link=postgresql-redmine:postgresql -p 10083:80
–env=‘REDMINE_PORT=10083’ sameersbn/redmine:3.2.0-4
docker安装zipkin
docker pull registry.cn-hangzhou.aliyuncs.com/aliacs-app-catalog/openzipkin-zipkin:latest
docker run --name ziplin -d
-p 9411:9411 registry.cn-hangzhou.aliyuncs.com/aliacs-app-catalog/openzipkin-zipkin:latest
docker安装sentinel
docker pull bladex/sentinel-dashboard
docker run --name elvis.sentinel -d
-p 18485:8858 bladex/sentinel-dashboard
docker安装elasticsearch
docker pull registry.cn-hangzhou.aliyuncs.com/qijunbo/elasticsearch:7.2.0
docker run --name elasticsearch
-d -e “discovery.type=single-node”
-p 9200:9200 -p 9300:9300
registry.cn-hangzhou.aliyuncs.com/qijunbo/elasticsearch:7.2.0
docker安装solr
docker pull solr:7.5.0
docker run --name my-solr -d -p 8983:8983 -t solr:7.5.0
docker安装memcached
docker pull registry.cn-hangzhou.aliyuncs.com/wanggw/memcached:latest
docker run --name=memcached -d -m 1536m
-p 11211:11211 registry.cn-hangzhou.aliyuncs.com/wanggw/memcached:latest
-u root -m 1024m -c 1024
docker安装mycat-web
docker pull registry.cn-hangzhou.aliyuncs.com/wanggw/mycat-web:latest
docker run -d --name=mycat-web --memory=“2048m”
–restart=unless-stopped -p 8084:8082
-e TZ=“Asia/Shanghai” registry.cn-hangzhou.aliyuncs.com/wanggw/mycat-web:latest
docker安装nexus3
docker pull sameersbn/redmine:3.2.0-4
docker run -d -p 8088:8081 --name nexus3
-v /data/nexus/work/dockermaven:/nexus-data
–restart=always sonatype/nexus3
docker安装oracle
docker pull registry.cn-hangzhou.aliyuncs.com/nj_asiainfo/oracle_base:latest
docker run --privileged -tid --shm-size=“4g”
-p 1521:1521 -p 50001:22 --name oracle
-v /Volumes/work/X/code/docker/oracle_tj/orcl/orcl:/data/oracle/app/oracle/oradata/orcl
-v /Volumes/work/X/code/docker/oracle_tj/orcl/flash_recovery_area:/data/oracle/app/oracle/flash_recovery_area
registry.cn-hangzhou.aliyuncs.com/nj_asiainfo/oracle_base:latest
docker安装 jenkins
docker pull jenkinsci/blueocean
docker run -d --restart=always -u root
-p 9001:8080 -p 50000:50000
-v /data/wang/jenkins/workspace/:/root/.jenkins/workspace
-v jenkins-data:/var/jenkins_home
-v /var/run/docker.sock:/var/run/docker.sock
–name jenkins jenkinsci/blueocean:latest
docker安装register
docker pull register
docker run -d -p 5000:5000
-v /data/wang/registry:/tmp/registry
–name register register
docker安装yum-repo
docker pull registry.cn-hangzhou.aliyuncs.com/wise2c/yum-repo:v1.8.6
docker run -it -d --name LocalRepositry
-v /data/yum_data:/opt/yum -p 80:80
registry.cn-hangzhou.aliyuncs.com/wise2c/yum-repo:v1.8.6
docker安装portainer
docker pull portainer/portainer
docker run -d -p 9000:9000 --restart=always
–name prtainer portainer/portainer
docker安装rabbitmq
docker pull rabbitmq:management
docker run -d --hostname my-rabbit --name rabbit
-e RABBITMQ_DEFAULT_USER=admin -e
RABBITMQ_DEFAULT_PASS=admin -p 15672:15672 -p 5672:5672
-p 25672:25672 -p 61613:61613 -p 1883:1883 rabbitmq:management
docker安装activemq
docker pull webcenter/activemq:latest
docker run -d --name myactivemq --restart=always -p 61616:61616
-p 8161:8161 webcenter/activemq:latest
docker安装zookeeper
docker pull wurstmeister/zookeeper
docker run -d --name zookeeper -p 2181:2181 -t
wurstmeister/zookeeper
docker安装kafka
docker pull wurstmeister/kafka
docker run -d --name kafka --env KAFKA_ADVERTISED_HOST_NAME=localhost
–env KAFKA_ZOOKEEPER_CONNECT=10.30.2.222:2181
–env KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://10.30.2.222:9092
–env KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092
–env KAFKA_HEAP_OPTS="-Xmx256M -Xms128M"
–net=host wurstmeister/kafka
docker安装hadoop
docker pull registry.cn-hangzhou.aliyuncs.com/kaibb/hadoop
docker run --name master -d -h master registry.cn-hangzhou.aliyuncs.com/kaibb/hadoop
docker run --name slave1 -d -h slave1 registry.cn-hangzhou.aliyuncs.com/kaibb/hadoop
docker run --name slave2 -d -h slave2 registry.cn-hangzhou.aliyuncs.com/kaibb/hadoop
来源:CSDN
作者:wang2834557
链接:https://blog.csdn.net/wang2834557/article/details/103857396