Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of Software in docker Container

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today, what the editor shares with you is the method of installing software in docker containers. Docker containers often need to install some commonly used software. Let's introduce some software installation commands below.

Docker install java

1 find the java jdk image on Docker Hub

Docker pull java:8u111

Here we pull the official image

Docker pull java:8u111

3 use mirroring

Docker run-d-p 9090V / usr/springboot-1.jar:/usr/springboot-1.jar-- name springboot java:8u111 java-jar / usr/springboot-1.jar

View Mirror

Docker images

Docker install Redis

1 find the Redis image on Docker Hub

Docker search redis

2 pull the official image here

Docker pull redis:5.0

3 use mirroring

Docker run-p 6379 redis:3.2 redis-server 6379-v $PWD/data:/data-d redis:3.2 redis-server-- appendonly yes

4 connecting the container

Docker exec-it 4655d050c898 redis-cli

5 View container information

Info

Docker install rabbit

1 find the rabbit image on Docker Hub

Docker search rabbitmq:3-managemen

2 pull the official image here

Docker pull rabbitmq:3-managemen

3 use mirroring

The first is the login name guest password guest generated by default.

The second password can be set.

Docker run-d-- hostname my-rabbit-- name rabbit-p 15672 rabbitmq:3-managementdocker run-d-- hostname my-rabbit-- name rabbit-e RABBITMQ_DEFAULT_USER=user-e RABBITMQ_DEFAULT_PASS=password-p 15672 rabbitmq:3-management

Container cloud products are implemented by deploying container services on cluster servers through docker technology. They are powerful and easy to use, and can be used as cluster services. Private networks can be built freely and service clusters can be built easily.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report