consul Linux Docker 安装

[root@machine136 nacos]# docker search consul
NAME                                         DESCRIPTION                                      STARS     OFFICIAL   AUTOMATED
consul                                       Consul is a datacenter runtime that provides…   1372      [OK]       
hashicorp/consul-template                    Consul Template is a template renderer, noti…   28                   
hashicorp/consul                             Automatic build of consul based on the curre…   35                   [OK]
hashicorp/consul-k8s                         First-class integrations between Consul and …   9                    [OK]
bitnami/consul                               Bitnami Docker Image for Consul                  8                    [OK]
hashicorp/consul-enterprise                  Consul is a datacenter runtime that provides…   4                    
hashicorp/consul-k8s-control-plane           First-class integrations between Consul and …   1                    
hashicorp/consul-ecs                         This image is used to help with the installa…   1                    
hashicorp/consul-dataplane                   Consul dataplane connects an application to …   0                    
hashicorp/consul-replicate                                                                    1                    
hashicorp/consul-esm                                                                          0                    
bitnami/consul-exporter                                                                       0                    
hashicorp/consul-api-gateway                 Official Hashicorp Consul API Gateway Image      1                    
rapidfort/consul                             RapidFort optimized, hardened image for Cons…   0                    
ibmcom/consul-ppc64le                        Consul is a datacenter runtime that provides…   0                    
rapidfort/consul-official                    RapidFort optimized, hardened image for Cons…   0                    
hashicorp/consul-terraform-sync                                                               1                    
hashicorp/consul-aws                         Sync services in an AWS CloudMap namespace t…   0                    
hashicorp/consul-website                     image used for building consul's documentati…   0                    
hashicorp/consul-terraform-sync-enterprise                                                    0                    
jhipster/consul-config-loader                A small docker based tool to load Spring Boo…   9                    [OK]
noenv/consul                                 Consul Docker Image                              0                    
hashicorp/consul-lambda-registrator          Container image to register and deregister A…   0                    
ibmcom/consul-s390x                          Docker image for consul-s390x                    0                    
hashicorp/consul-smi-controller                                                               0                    
[root@machine136 nacos]# docker pull consul
Using default tag: latest
latest: Pulling from library/consul
895e193edb51: Pull complete 
9a8ecfd7194b: Pull complete 
e68aafa623d7: Pull complete 
80cb2d1beebf: Pull complete 
a563b41aad02: Pull complete 
9917a9cd9617: Pull complete 
Digest: sha256:a85bfcc836b2ebdbfdd15be6a2bd97d8bfe99d00325ed7c857519c1a01d5527a
Status: Downloaded newer image for consul:latest
docker.io/library/consul:latest
[root@machine136 nacos]# docker images
REPOSITORY   TAG             IMAGE ID       CREATED      SIZE
consul       latest          041dc476cc20   2 days ago   149MB
mysql        5.7.41-debian   5f99a3d9960f   4 days ago   462MB
mysql        latest          57da161f45ac   4 days ago   517MB

[root@machine136 nacos]# docker run -itd --name consul -p8500:8500 consul
d92a6921369cdf87517734f4470e0744a616dc605f5b44999777991aecaa0897
[root@machine136 nacos]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d92a6921369c consul "docker-entrypoint.s…" 14 seconds ago Up 13 seconds 8300-8302/tcp, 8301-8302/udp, 8600/tcp, 8600/udp, 0.0.0.0:8500->8500/tcp, :::8500->8500/tcp consul
86031f219411 mysql "docker-entrypoint.s…" 43 minutes ago Up 43 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp

 

测试

 

posted on 2023-02-13 16:39  hztech  阅读(101)  评论(0编辑  收藏  举报

导航