web-dev-qa-db-fra.com

Conteneur Redhat pour LXD

J'ai vu sur le site Web Ubuntu que RedHat est un invité pris en charge sur LXD.

Cependant, il ne semble pas faire partie de la liste d'images par défaut lors d'une installation par défaut de LXD.

Est-il possible d'avoir Redhat sur LXD dans Ubuntu?

1
Phoenix24

eh bien, ce n'est pas redhat en soi, mais Centos, oui.

Vous pouvez voir tous les images sur le site linuxcontainers.org .

Et, voici un exemple sur ma machine Ubuntu 16.04:

dpb@helo:~[]$ lxc image list images: |grep -i centos
| centos/6/AMD64 (1 more)         | ac4253d28519 | yes    | Centos 6 (AMD64) (20170818_02:16)          | x86_64  | 66.21MB  | Aug 18, 2017 at 2:31am (UTC)  |
| centos/6/i386 (1 more)          | 5619584e8da1 | yes    | Centos 6 (i386) (20170818_02:16)           | i686    | 66.15MB  | Aug 18, 2017 at 2:32am (UTC)  |
| centos/7/AMD64 (1 more)         | dafefb5f0a63 | yes    | Centos 7 (AMD64) (20170818_02:16)          | x86_64  | 65.27MB  | Aug 18, 2017 at 2:33am (UTC)  |
|                                 | 293e05de21c1 | yes    | Centos 6 (AMD64) (20170817_02:16)          | x86_64  | 66.25MB  | Aug 17, 2017 at 2:31am (UTC)  |
|                                 | 36c0db7cee4d | yes    | Centos 6 (i386) (20170817_02:16)           | i686    | 66.13MB  | Aug 17, 2017 at 2:32am (UTC)  |
|                                 | 999e1d3d5a52 | yes    | Centos 7 (AMD64) (20170816_02:16)          | x86_64  | 65.27MB  | Aug 16, 2017 at 2:33am (UTC)  |
|                                 | a22d66494d46 | yes    | Centos 7 (AMD64) (20170817_02:16)          | x86_64  | 65.29MB  | Aug 17, 2017 at 2:33am (UTC)  |
|                                 | f71860cca3e8 | yes    | Centos 6 (AMD64) (20170816_02:16)          | x86_64  | 66.22MB  | Aug 16, 2017 at 2:31am (UTC)  |
|                                 | f884baaed792 | yes    | Centos 6 (i386) (20170816_02:16)           | i686    | 66.15MB  | Aug 16, 2017 at 2:32am (UTC)  |
dpb@helo:~[]$ lxc launch images:centos/7/AMD64 centos-7
Creating centos-7
Starting centos-7
dpb@helo:~[]$ lxc exec centos-7 -- cat /etc/os-release /etc/centos-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel Fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.3.1611 (Core)
3
dpb