An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
April 1, 2023 09:01 pm GMT
Original Link: https://dev.to/aws-builders/how-to-install-docker-using-linux-terminal-4pjd
How to install docker using Linux terminal?
- In the ssh terminal, enter the following command to install the yum-utils package:
sudo yum install -y yum-utils
The yum-utils package includes a handy utility for adding package repositories that you will use next.
- Enter the following to add the Docker CE package repositories to your system:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- Enter the subsequent command to update the yum cache with the Docker repositories:
sudo yum makecache
- Enter the following to install Docker CE:
sudo yum -y install docker-ce libseccomp
- Enter the command below to start Docker as a service:
sudo systemctl start docker
- Verify Docker is running by entering:
sudo docker info
This will output system-wide information about Docker. The information will resemble the following:
alt
You can see some useful information, such as the number of containers, and the version of the Docker server. Docker adopts a client-server architecture, so the server doesn't have to be running on the same host as the client. In your case, you are using the Docker command line interface (CLI) client to connect to the server, called the Docker daemon.
Original Link: https://dev.to/aws-builders/how-to-install-docker-using-linux-terminal-4pjd
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To