创建特权容器

请参照下列选项进行中文本地化改写:

    Linux Containers – LXC – はじめに

进行步骤

# lxc-create -t download -n privileged-centos7
Setting up the GPG keyring
Downloading the image index

---
DIST    RELEASE ARCH    VARIANT BUILD
---
centos  6   amd64   default 20150208_02:16
centos  6   i386    default 20150208_02:16
centos  7   amd64   default 20150208_02:16
debian  jessie  amd64   default 20150207_22:42
debian  jessie  armel   default 20150207_22:42
debian  jessie  armhf   default 20150207_22:42
debian  jessie  i386    default 20150207_22:42
debian  sid amd64   default 20150207_22:42
debian  sid armel   default 20150207_22:42
debian  sid armhf   default 20150207_22:42
debian  sid i386    default 20150207_22:42
debian  wheezy  amd64   default 20150207_22:42
debian  wheezy  armel   default 20150207_22:42
debian  wheezy  armhf   default 20150207_22:42
debian  wheezy  i386    default 20150207_22:42
fedora  19  amd64   default 20150208_01:27
fedora  19  armhf   default 20150208_01:27
fedora  19  i386    default 20150208_01:27
fedora  20  amd64   default 20150208_01:27
fedora  20  armhf   default 20150208_01:27
fedora  20  i386    default 20150208_01:27
gentoo  current amd64   default 20150206_14:12
gentoo  current armhf   default 20150206_14:12
gentoo  current i386    default 20150206_14:12
opensuse    12.3    amd64   default 20141127_00:53
opensuse    12.3    i386    default 20141127_00:53
oracle  6.5 amd64   default 20150207_11:40
oracle  6.5 i386    default 20150207_11:40
plamo   5.x amd64   default 20150207_21:36
plamo   5.x i386    default 20150207_21:36
ubuntu  precise amd64   default 20150208_03:49
ubuntu  precise armel   default 20150208_03:49
ubuntu  precise armhf   default 20150208_03:49
ubuntu  precise i386    default 20150208_03:49
ubuntu  trusty  amd64   default 20150208_03:49
ubuntu  trusty  arm64   default 20150203_03:49
ubuntu  trusty  armhf   default 20150208_03:49
ubuntu  trusty  i386    default 20150208_03:49
ubuntu  trusty  ppc64el default 20150208_03:49
ubuntu  utopic  amd64   default 20150208_03:49
ubuntu  utopic  arm64   default 20150203_03:49
ubuntu  utopic  armhf   default 20150208_03:49
ubuntu  utopic  i386    default 20150208_03:49
ubuntu  utopic  ppc64el default 20150208_03:49
ubuntu  vivid   amd64   default 20150208_03:49
ubuntu  vivid   arm64   default 20150203_03:49
ubuntu  vivid   armhf   default 20150208_03:49
ubuntu  vivid   i386    default 20150208_03:49
ubuntu  vivid   ppc64el default 20150208_03:49
---
    特権コンテナとして作成したいディストリビューションを選択
Distribution: centos
Release: 7
Architecture: amd64
Downloading the image index
Downloading the rootfs
Downloading the metadata
The image cache is now ready
Unpacking the rootfs

---
You just created a CentOS container (release=7, arch=amd64, variant=default)

To enable sshd, run: yum install openssh-server

For security reason, container images ship without user accounts
and without a root password.

Use lxc-attach or chroot directly into the rootfs to set a root password
or create user accounts.
lxc-start -n privileged-centos7
lxc-attach -n  privileged-centos7

特权容器中的LXC备份、恢复以及CentOS 7备忘录与Qiita网站相同现象。

广告
将在 10 秒后关闭
bannerAds