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
Volume: local
Network: bridge host macvlan null overlay
Swarm: pending
NodeID: 9vb33yp77n46lqmfmnc6vgi80
Error: rpc error: code = 4 desc = context deadline exceeded
Is Manager: true
Managers: 0
Nodes: 0
Task History Retention Limit: 0
Snapshot Interval: 0
Heartbeat Tick: 0
Election Tick: 0
Heartbeat Period: Less than a second
CA Configuration:
Expiry Duration: Less than a second
Node Address:
Manager Addresses:
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:
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
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Experimental: false
Insecure Registries:
Live Restore Enabled: false
Registries: (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 *