How to Install Docker in Centos 7

Share on :

Docker is one of the most famous and most used containerization platform. It is used to create containers . using docker you can deploy your applications with very minute amount of resources.

for more info read our blog post on Docker

Now lets Install Docker in Centos 7

sudo su
yum install docker -y

Now just start and enable the service of docker.

systemctl start docker
systemctl enable docker

Now to verify that docker is installed successfully you can run “docker info” command.

docker info

Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 3
Server Version: 1.13.1
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: pending
NodeID: 9vb33yp77n46lqmfmnc6vgi80
Error: rpc error: code = 4 desc = context deadline exceeded
Is Manager: true
ClusterID:
Managers: 0
Nodes: 0
Orchestration:
Task History Retention Limit: 0
Raft:
Snapshot Interval: 0
Heartbeat Tick: 0
Election Tick: 0
Dispatcher:
Heartbeat Period: Less than a second
CA Configuration:
Expiry Duration: Less than a second
Node Address: 192.168.225.195
Manager Addresses:
0.0.0.0:2377
192.168.1.15:2377
192.168.1.203:2377
Runtimes: docker-runc runc
Default Runtime: docker-runc
Init Binary: /usr/libexec/docker/docker-init-current
containerd version:
(expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: df5c38a9167e87f53a9894d77c0950e178a745e7 (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
seccomp
WARNING: You’re not using the default seccomp profile
Profile: /etc/docker/seccomp.json
Kernel Version: 3.10.0-862.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 3
CPUs: 4
Total Memory: 11.66 GiB
Name: server
ID: 3NST:44G5:DMGN:CSDK:62LK:7SLZ:2FTZ:S4P4:TWNQ:MBXI:EOUO:YQJM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Registries: docker.io (secure)

Follow our YouTube Guide.


Share on :

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *