Автор Тема: [РЕШЕНО] docker run -it alt  (Прочитано 92 раз)

Оффлайн hjkl

  • Участник
  • *
  • Сообщений: 150
[РЕШЕНО] docker run -it alt
« : 30.09.2025 18:40:45 »
Добрый день,
В процессе создания телеграм-бота попытался установить АЛЬТ Линукс p10 в контейнер  по инструкции https://www.altlinux.org/Docker. В ней по умолчанию используется образ из тега latest, который указывает на последний стабильный бранч. Например, в 2023 году это был p10, сейчас это p11. Как использовать образ p10 для установки АЛЬТ Линукс в контейнер?
С уважением, hjkl
« Последнее редактирование: 30.09.2025 18:45:49 от hjkl »

Оффлайн hjkl

  • Участник
  • *
  • Сообщений: 150
Re: docker run -it alt
« Ответ #1 : 30.09.2025 18:45:32 »
sudo docker run -it alt:p10

Оффлайн hjkl

  • Участник
  • *
  • Сообщений: 150
Re: [РЕШЕНО] docker run -it alt
« Ответ #2 : 30.09.2025 18:49:57 »
Ура!
[root@36f5406c910b /]# mkdir -p /home
[root@36f5406c910b /]# useradd -m -d /home/altlinux -s /bin/bash -p altlinux altlinux
[root@36f5406c910b /]# passwd altlinux
passwd: updating all authentication tokens for user altlinux.

You can now choose the new password or passphrase.

A valid password should be a mix of upper and lower case letters, digits, and
other characters.  You can use a password containing at least 7 characters
from all of these classes, or a password containing at least 8 characters
from just 3 of these 4 classes.
An upper case letter that begins the password and a digit that ends it do not
count towards the number of character classes used.

A passphrase should be of at least 3 words, 11 to 72 characters long, and
contain enough different characters.

Alternatively, if no one else can see your terminal now, you can pick this as
your password: "beauty8editor3Wheel".

Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully.
[root@36f5406c910b /]# apt-get install python3 pip       
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  alternatives ca-certificates ca-trust libcrypto1.1 libexpat libgdbm libssl1.1 p11-kit-trust python3-base
  python3-module-pip rpm-macros-alternatives
The following NEW packages will be installed:
  alternatives ca-certificates ca-trust libcrypto1.1 libexpat libgdbm libssl1.1 p11-kit-trust pip python3
  python3-base python3-module-pip rpm-macros-alternatives
0 upgraded, 13 newly installed, 0 removed and 5 not upgraded.
Need to get 14.2MB of archives.
After unpacking 58.2MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.altlinux.org p10/branch/noarch/classic rpm-macros-alternatives 0.5.2-alt1:p10+309129.100.2.1@1668066636 [11.7kB]
Get:2 http://ftp.altlinux.org p10/branch/noarch/classic alternatives 0.5.2-alt1:p10+309129.100.2.1@1668066636 [24.7kB]
Get:3 http://ftp.altlinux.org p10/branch/x86_64/classic p11-kit-trust 0.24.1-alt1:p10+305061.100.3.1@1660573397 [116kB]
Get:4 http://ftp.altlinux.org p10/branch/noarch/classic ca-trust 0.1.6-alt1:p10+344774.100.1.1@1712685728 [13.2kB]
Get:5 http://ftp.altlinux.org p10/branch/noarch/classic ca-certificates 2024.12.10-alt1:p10+372243.20.2.1@1738332466 [387kB]
Get:6 http://ftp.altlinux.org p10/branch/x86_64/classic libcrypto1.1 1.1.1w-alt0.p10.2:p10+364728.100.2.1@1734595128 [1307kB]
Get:7 http://ftp.altlinux.org p10/branch/x86_64/classic libexpat 2.5.0-alt1:p10+324220.100.1.1@1688465137 [91.4kB]
Get:8 http://ftp.altlinux.org p10/branch/x86_64/classic libgdbm 1.8.3-alt10:sisyphus+278100.1600.1.1@1626058413 [19.6kB]
Get:9 http://ftp.altlinux.org p10/branch/x86_64/classic libssl1.1 1.1.1w-alt0.p10.2:p10+364728.100.2.1@1734595128 [216kB]
Get:10 http://ftp.altlinux.org p10/branch/x86_64/classic python3-base 3.9.20-alt1:p10+357900.100.1.1@1726758230 [8035kB]
Get:11 http://ftp.altlinux.org p10/branch/x86_64/classic python3 3.9.20-alt1:p10+357900.100.1.1@1726758230 [1417kB]
Get:12 http://ftp.altlinux.org p10/branch/x86_64/classic python3-module-pip 22.2.2-alt1:p10+307737.1400.28.1@1666774303 [2589kB]
Get:13 http://ftp.altlinux.org p10/branch/noarch/classic pip 22.2.2-alt1:p10+307737.1400.28.1@1666774303 [7031B]
Fetched 14.2MB in 1s (11.6MB/s)
Committing changes...
Preparing...                            ############################################################### [100%]
Updating / installing...
 1: libgdbm-1.8.3-alt10                 ############################################################### [  8%]
 2: libexpat-2.5.0-alt1                 ############################################################### [ 15%]
 3: rpm-macros-alternatives-0.5.2-alt1  ############################################################### [ 23%]
 4: alternatives-0.5.2-alt1             ############################################################### [ 31%]
 5: ca-certificates-2024.12.10-alt1     ############################################################### [ 38%]
 6: ca-trust-0.1.6-alt1                 ############################################################### [ 46%]
 7: p11-kit-trust-0.24.1-alt1           ############################################################### [ 54%]
 8: libcrypto1.1-1.1.1w-alt0.p10.2      ############################################################### [ 62%]
 9: libssl1.1-1.1.1w-alt0.p10.2         ############################################################### [ 69%]
10: python3-3.9.20-alt1                 ############################################################### [ 77%]
11: python3-base-3.9.20-alt1            ############################################################### [ 85%]
12: python3-module-pip-22.2.2-alt1      ############################################################### [ 92%]
13: pip-22.2.2-alt1                     ############################################################### [100%]
Done.
« Последнее редактирование: 30.09.2025 19:05:48 от hjkl »