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

Basic installation configuration of Docker

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

Share

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

First, install the yum install source yum install epel-release-y II, add the docker source yum install-y yum-utilsyum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo III, view the current docer installation version number yum list docker-ce-- show- installs, install the community version dockeryum-y install docker- CEV, create the configuration file docker for the configuration docker] # vi / etc/docker/daemon.json {"graph": "/ data/docker" "storage-driver": "overlay2", "insecure-registries": ["registry.access.redhat.com", "quay.io"], "registry-mirrors": ["https://q2gr04ke.mirror.aliyuncs.com"]," bip ":" 172.7.5.1 native.cgroupdriver=systemd 24 "," exec-opts ": [" native.cgroupdriver=systemd "] "live-restore": true} graph: docker working directory sotrage-dirver: docer storage driver mode insecure-registries: container repository registry-mirrors: warehouse acceleration image bip: container running network exec-opts: container startup mode live-restore: when the container engine is interrupted The started container continues to run. 6. Boot & shutdown & restart docker Startup: systemctl start docker shutdown: systemctl stop docker restart: systemctl restart Docker VII. View current container information [root@docker docker] # docker infoClient: Debug Mode: falseServer: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 19.03.5 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: systemd Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd Version: b34a5c8af56e510852c35414db4c1f4fa6172339 runc version: 3e425f80a8c931f88e6d94a8c831b9d5aa481657 init version: fec3683 Security Options: seccomp Profile: default Kernel Version: 3.10.0-693.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86'64 CPUs: 1 Total Memory: 1.797GiB Name: docker ID: 2Q52:PFL3:RWZM:T77G:LAAB:NHX5:FWAL:4NDC:N6Q4:SNBU:BKRX:YWPW Docker Root Dir: / app/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental : false Insecure Registries: quay.io registry.access.redhat.com 127.0.0.0/8 Registry Mirrors: https://q2gr04ke.mirror.aliyuncs.com/ Live Restore Enabled: trueWARNING: bridge-nf-call-iptables is disabledWARNING: bridge-nf-call-ip6tables is disabled

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