Docker Common Software Run command

Source: Internet
Author: User
Tags etcd

Sonarqube
Docker run-d--name sonarqube-p 8998:9001-p 8999:9092-e sonarqube_jdbc_username=root-e sonarqube_jdbc_password=root- E Sonarqube_jdbc_url=jdbc:mysql://192.168.1.120:3306/sonar?useunicode=true/&characterencoding=utf8 SONARQUBE : Latest

Tomcat
Docker Run-dt--name tomcat-cas-p 8888:8080-v/opt/tomcat/tomcat-cas:/usr/local/tomcat/webapps tomcat:latest
Docker Run-dt--name tomcat-orgmanager-p 8889:8080-v/opt/tomcat/orgmanager:/usr/local/tomcat/webapps tomcat:latest
Docker Run-dt--name tomcat-smartadmin-p 8890:8080-v/opt/tomcat/smartadmin:/usr/local/tomcat/webapps tomcat:latest
Docker Run-dt--name tomcat-orgclient1-p 8890:8080-v/opt/tomcat/orgclient1:/usr/local/tomcat/webapps tomcat:latest
Docker Run-dt--name tomcat-orgclient2-p 8891:8080-v/opt/tomcat/orgclient2:/usr/local/tomcat/webapps tomcat:latest


Mysql
Docker run--name some-mysql-v/opt/mysql/db:/var/lib/mysql-v/opt/mysql/confd:/etc/mysql/conf.d-p 3306:3306-e MYSQL_ root_password=root-d MySQL



Nginx

Docker run--name nginx-v/opt/nginx/conf:/etc/nginx-v/opt/nginx/html:/usr/share/nginx/html-p 80:80-d nginx

Etcd

Docker run--name etcd-d-P 4001:4001-v/etcd/data:/data elcolio/etcd-name etcd-listen-client-urls=http://192.168.1.11 2:4001-advertise-client-urls Http://192.168.1.112:4001-initial-advertise-peer-urls http://192.168.1.112:7001

Export hostip= "192.168.12.50"

Docker run-d-v/opt/etcd/ssl/certs:/etc/ssl/certs-p 4001:4001-p 2380:2380-p 2,379:2,379 \
--name Etcd ELCOLIO/ETCD \
-name etcd0 \
-advertise-client-urls http://192.168.1.121:2379,http://192.168.1.121:4001 \
-listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \
-initial-advertise-peer-urls http://192.168.1.121:2380 \
-listen-peer-urls http://0.0.0.0:2380 \
-initial-cluster-token etcd-cluster-1 \
-initial-cluster etcd0=http://192.168.1.121:2380 \
-initial-cluster-state New



Docker run-d-v/usr/share/ca-certificates/:/etc/ssl/certs-p 4001:4001-p 2380:2380-p 2379:2379 \--name Etcd quay.io/c oreos/etcd:v2.0.8 \-name etcd0 \-advertise-client-urls http://${hostip}:2379,http://${hostip}:4001 \- Listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \-initial-advertise-peer-urls http://${hostip}:2380 \- Listen-peer-urls http://0.0.0.0:2380 \-initial-cluster-token etcd-cluster-1 \-initial-cluster Etcd0=http://${hostip }:2380 \-initial-cluster-state New

Docker Common Software Run command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.