mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
refine the doc
This commit is contained in:
parent
6c9aa1391a
commit
cdfda7d1c4
@ -85,7 +85,7 @@ Create the Docker container
|
||||
|
||||
Now create the xCAT Docker container with the Docker image "xcat/xcat-ubuntu-x86_64" ::
|
||||
|
||||
[root@dockerhost1 ~]# sudo docker create -it --privileged=true --dns=10.5.106.1 --dns-search=clusters.com --hostname=xcatmn --name=xcatmn --add-host=xcatmn:10.5.106.101 --add-host c910f05c01bc06:10.5.106.1 --net=none xcat/xcat-ubuntu-x86_64
|
||||
[root@dockerhost1 ~]# sudo docker create -it --privileged=true --dns=10.5.106.1 --dns-search=clusters.com --hostname=xcatmn --name=xcatmn --add-host=xcatmn:10.5.106.101 --add-host=c910f05c01bc06:10.5.106.1 --net=none xcat/xcat-ubuntu-x86_64
|
||||
|
||||
* use ``--privileged=true`` to give extended privileges to this container
|
||||
* use ``--dns`` and ``--dns-search`` to specify the name server and dns domain for the container, which will be written to ``/etc/resolv.conf`` of the container
|
||||
@ -132,7 +132,7 @@ You can attach to the container ::
|
||||
|
||||
sudo docker attach xcatmn
|
||||
|
||||
Besides the terminal opened by ``docker attach``, you can also enable the ssh inside the container and login to the Docker container via "ssh". For Ubuntu, you can enable the ssh by:
|
||||
Besides the terminal opened by ``docker attach``, you can also enable the ssh inside the container and login to the running Docker container via "ssh". For Ubuntu, you can enable the ssh by:
|
||||
|
||||
* change the "PermitRootLogin" to "yes" in "/etc/ssh/sshd_config"
|
||||
* set the password for "root" with ``passwd root``
|
||||
|
Loading…
x
Reference in New Issue
Block a user