1. Docker Installation
Steps
Upload the Compressed Package
- Upload the downloaded compressed package (reference file:
docker-27.2.1.tgz
) to the Linux server.
- Upload the downloaded compressed package (reference file:
Extract the Compressed Package
bashtar -xvf docker-27.2.1.tgz
Move the Files
- Move the extracted Docker files to the
/usr/bin/
directory:
bashmv docker/* /usr/bin/
Alternatively, you can use the copy command:
bashcp docker/* /usr/bin/
- Move the extracted Docker files to the
Register Docker as a Service
- Create a
docker.service
file according to your configuration, referring to Attachment 1:
bashvi /etc/systemd/system/docker.service
- Create a
Start Docker
bashchmod +x /etc/systemd/system/docker.service # Set permissions systemctl daemon-reload # Reload the service systemctl --now start docker # Start Docker
Check Installation
- Use the following command to check if Docker has been installed successfully:
bashdocker version
2. Docker-Compose Installation
Steps
Place the
docker-compose
file in the/usr/local/bin/
directory.Check if
docker-compose
has been installed successfully:
bash
docker-compose --version
3. System Setup
Steps
- Pull the required images from Docker Hub:
bash
docker pull yuantuo/intalink_nginx:1.23.1
docker pull yuantuo/intalink_service:8_latest
docker pull yuantuo/intalink_mysql:8.0.27
docker pull yuantuo/intalink_redis:6.2.6
4. Start the Containers
Steps
Place the
docker-compose.yaml
file in the/home/intalink
directory.Run Docker Compose in the background:
bash
docker-compose up -d
5. Accessing the Page
- Modify according to different addresses (the port is 80):
- Page access link