Ubuntu Server
------ add aravan repo --------
1- read and change your repo:
https://www.arvancloud.ir/fa/dev/linux-repository
------ dns server ---------
1- rm /etc/resolv.conf
2- touch /etc/resolv.conf
3- add these line with command nano /etc/resolv.conf
nameserver 185.98.113.113
nameserver 185.98.114.114
--------------- install docker from cdn repository ---------------
1- sudo curl -fsSL https://mirror.cdn.ir/repository/docker/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
2- sudo chmod a+r /etc/apt/keyrings/docker.asc
3- sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://mirror.cdn.ir/repository/docker/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
4- apt update -y
5- sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
6 - sudo systemctl status docker
7 - sudo systemctl enable docker --now
------- Use docker images from cdn repository-------
1- vim /etc/docker/daemon.json
2- write this to file :
{
"registry-mirrors": ["https://mirror.cdn.ir"]
}
3 - sudo systemctl daemon-reload
4 - sudo systemctl restart docker
5 - docker pull hello-world