From cdfda7d1c405b93a19c8ae30d1b6130c0ef0dab8 Mon Sep 17 00:00:00 2001 From: immarvin Date: Mon, 25 Jan 2016 21:16:18 -0500 Subject: [PATCH] refine the doc --- docs/source/advanced/docker/run_xcat_in_docker.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/advanced/docker/run_xcat_in_docker.rst b/docs/source/advanced/docker/run_xcat_in_docker.rst index 983b8481d..254a537c1 100644 --- a/docs/source/advanced/docker/run_xcat_in_docker.rst +++ b/docs/source/advanced/docker/run_xcat_in_docker.rst @@ -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``