当前位置:网站首页>Installation and basic operation of docker
Installation and basic operation of docker
2022-07-27 01:49:00 【Palm nine】
List of articles
- 1. install docker service , Configure image Accelerator
- 2. Download the system image (Ubuntu、 centos)
- 3. Create two containers based on the downloaded image ( The container name is a complete spelling of your own name , A first name letter )
- 4. Start of container 、 Stop and restart operation
- 5. How to view running containers and all containers ?
- 6. How to exit the container : The two methods are implemented separately ?
- 7. How to connect to the running container ?
- 8. View the internal information of the container or image ?
- 9. How to view all images ?
1. install docker service , Configure image Accelerator
First check the firewall and selinux

Close the firewall and selinux

Use the official installation script to automatically install
install
It's actually downloading an installation script , reinstall ( Not recommended , Unable to select version installation )
[[email protected] ~]# curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
see yum Source 

yum Source configured , Optional version 
start-up docker
Validation version 
Configure image Accelerator



2. Download the system image (Ubuntu、 centos)
Search for docker Mirror image

Pull centos Mirror image 
View the downloaded image

3. Create two containers based on the downloaded image ( The container name is a complete spelling of your own name , A first name letter )

4. Start of container 、 Stop and restart operation


5. How to view running containers and all containers ?

6. How to exit the container : The two methods are implemented separately ?
Web access container

Get into (-it) And exit the container


7. How to connect to the running container ?
adopt exec Connect

8. View the internal information of the container or image ?
Look inside the container

View the internal information of the image

9. How to view all images ?

边栏推荐
猜你喜欢

22FTP

DNS
![[ctf real question] 2018 WANGDING cup web unfinish](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[ctf real question] 2018 WANGDING cup web unfinish

Buuctf casual note, exec, easysql, secret file
![[polymorphism] the detailed introduction of polymorphism is simple and easy to understand](/img/85/7d00a0d9bd35d50635a0e41f49c691.png)
[polymorphism] the detailed introduction of polymorphism is simple and easy to understand

Proxmox VE安装与初始化

正则表达式之小工具系列

Web services (07) - LNMP one click deployment

Web Service (04) -- Introduction and construction of lamp +discuz Forum

Shell脚本——自动部署DNS服务
随机推荐
四、数值变量的运算
Typescript 14 starting from 0: built in tool type
34iptables防火墙
Lnmp+discuz Forum
Shell (7) case statement
regular expression
23NFS共享存储服务
SSH和NFS服务
域名分析和DNS的配置安装
小项目——开机自连校园网
24SSH服务
Docter的安装和基础操作
DNS
It's the first time to write your own program in C language. If you have a boss, you can help a little
Web server (01) -- Introduction to web server
Review of information acquisition technology
源码编译安装LAMP
Shell (9) function
Notes during in-depth learning (to be improved)
[ctf attack and defense world] questions about cookies in the web area