Enter cloud native! In this article, I will briefly explain how to build a virtual Docker host. Here I am installing Docker on a CentOS 7.4 virtual machine running on ESXi 6.5 which is part of a VMware vSAN cluster.
Prerequisites:
- Deploy a basic CentOS 7.4 VM
- Assign IP address and ensure the VM has internet connectivity
- You should have root creds
Installation:
- SSH to the CentOS VM as root
- yum check-update
- yum install -y yum-utils device-mapper-persistent-data lvm2
- yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- yum install docker-ce
- systemctl start docker
- systemctl enable docker
- systemctl status docker
Verify version:
- docker version
Run your first container:
- docker run hello-world
Hope it was useful. Cheers! In the next part, I will explain basic Docker commands and operations.
A perfect intro to Docker. Good work
ReplyDelete