In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "Overview and installation steps of Docker". In daily operation, I believe many people have doubts about the overview and installation steps of Docker. 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 of "Overview and installation steps of Docker". Next, please follow the editor to study!
I. Overview
Official website:
Https://www.docker.com
Dockerhub:
Https://hub.docker.com/
Docker is an open source application container engine based on the Go language and open source according to the Apache2.0 protocol.
Docker allows developers to package their applications and dependencies into a lightweight, portable container and publish them to any popular Linux machine.
Containers are completely sandboxed and do not have any interfaces to each other (similar to iPhone's app). More importantly, the container performance overhead is extremely low.
Publishing a project from windows to linux environment is not cross-platform. Previously, to release a jar or war, you need to configure redis, mysql, ES, and jdk on the machine. After using docker, you can bring the environment to package (mirror).
II. Composition
Image: create a container through an image, which is equivalent to a root file system, creating a template for a Docker container.
Container (container): runs the application independently and is the entity that mirrors the runtime.
Repository: the Docker repository is used to hold images and can be understood as a code repository in code control.
III. Installation
Installation documentation for CentOS:
Https://docs.docker.com/engine/install/centos/
1. Uninstall:
Sudo yum remove docker\ docker-client\ docker-client-latest\ docker-common\ docker-latest\ docker-latest-logrotate\ docker-logrotate\ docker-engine
2. Install the package:
Sudo yum install-y yum-utils
3. Set up the image warehouse
Sudo yum-config-manager\-- add-repo\ https://download.docker.com/linux/centos/docker-ce.repo
Do not use the image address of Aliyun:
Sudo yum-config-manager\-- add-repo\ http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Install the core of the latest docker-ce Community Edition:
Sudo yum install docker-ce docker-ce-cli containerd.io
Or specify a version:
Sudo yum install docker-ce- docker-ce-cli- containerd.io
Start as a service:
Sudo systemctl start docker
Docker run:
Sudo docker run hello-world
At this point, the study on the "Overview and installation steps of Docker" 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.