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

Steps to install and use Docker under Centos

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "installing and using Docker under Centos". In daily operation, I believe that many people have doubts about installing and using Docker under Centos. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "installing and using Docker under Centos". Next, please follow the editor to study!

1. Configure Fedora EPEL Feed

Yum install http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm

two。 Install Docker

Yum install docker-io

3. Start Docker and join the system service

Service docker startchkconfig docker on

The installation is complete at this point.

Use Docker

1. View Docker information

Docker info

two。 List all image

Docker images

3. List all containers that are running

Docker ps

4. Install Docker UI for management

Docker run-d-p 9000 9000-v / var/run/docker.sock:/var/run/docker.sock dockerui/dockeruiOpen your browser to http://:9000

5. Install a Tomcat7 container

Docker run-d-p 8888 tomcat:7.0 8080 tomcat:7.0 in a browser.

Official application address

Https://hub.docker.com/explore/

6. View the real ID of the container

Docker inspect-f'{{.ID}} '94da336adcf6

7.Winscp container address

/ var/lib/docker/devicemapper/mnt + Real ID

At this point, the study on "installing and using Docker under Centos" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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