The Nautilus DevOps team is working on containerizing various applications. As part of this initiative, Docker needs to be installed and configured on App Server 1.
- Install the
docker-ce
anddocker-compose
packages on App Server 1. - Start the Docker service after installation.
-
Install Docker Packages:
- Use
yum
to install the necessary Docker packages:sudo yum install docker-ce docker-ce-cli containerd.io -y sudo yum install docker-compose -y
- Use
-
Start the Docker Service:
- Start the Docker service to enable container management:
sudo systemctl start docker
- Start the Docker service to enable container management:
-
Enable Docker to Start on Boot:
- Ensure Docker starts automatically on system boot:
sudo systemctl enable docker
- Ensure Docker starts automatically on system boot:
- yum install: Installs specified packages on a CentOS/RHEL-based system.
- systemctl start: Starts the specified service.
- systemctl enable: Enables the service to start at boot.