Docker и Docker Compose - установка на Ubuntu 22.04 - Jammy Jellyfish: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Admin iph (обсуждение | вклад) |
Admin iph (обсуждение | вклад) |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 7: | Строка 7: | ||
# apt update -y | # apt update -y | ||
# apt install apt-transport-https ca-certificates curl software-properties-common -y | # apt install apt-transport-https ca-certificates curl software-properties-common -y | ||
− | # | + | # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg |
− | # | + | # echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
# apt update | # apt update | ||
− | # apt install docker-ce | + | # apt install docker-ce -y |
− | Проверить статус службы: | + | Проверить статус службы и добавить в автозагрузку: |
# systemctl status docker | # systemctl status docker | ||
+ | # systemctl enable docker | ||
Проверить версию docker: | Проверить версию docker: | ||
# docker version | # docker version |
Текущая версия на 20:40, 21 марта 2023
Docker и Docker Compose - установка на Ubuntu 22.04 - Jammy Jellyfish
Алгоритм установки докера на Ubuntu 22.04 (Jammy Jellyfish):
# apt update -y # apt install apt-transport-https ca-certificates curl software-properties-common -y # curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg # echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null # apt update # apt install docker-ce -y
Проверить статус службы и добавить в автозагрузку:
# systemctl status docker # systemctl enable docker
Проверить версию docker:
# docker version