The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/pylxd/pull/385

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
This is the original patch from https://github.com/lxc/pylxd/pull/294 (user: https://github.com/ilyakimavets)  -- it's re-based as the original author appears to have gone away.  Thanks for the original patch.
From 6be9a5d4e7881b94fe0c830e0234daf49bb19d21 Mon Sep 17 00:00:00 2001
From: ilyakimavets <il.yakimav...@gmail.com>
Date: Mon, 2 Apr 2018 16:18:12 +0300
Subject: [PATCH] Update containers.rst

---
 doc/source/containers.rst | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/doc/source/containers.rst b/doc/source/containers.rst
index bad8f4ed..3ab99fc3 100644
--- a/doc/source/containers.rst
+++ b/doc/source/containers.rst
@@ -112,34 +112,35 @@ you'll pass `wait=True` as well.
 
 If you were to use an actual image source, you would be able to operate
 on the container, starting, stopping, snapshotting, and deleting the
-container.
+container. You can also modify container config (limits and etc).
 
 .. code-block:: python
 
-    >>> config = {'name': 'my-container', 'source': {'type': 'image', 'alias': 
'ubuntu/trusty'}}
+    >>> config = {'name': 'my-container', 'source': {'type': 'image', 'alias': 
'ubuntu/trusty'} 'config': {'limits.cpu': '2'}}
     >>> container = client.containers.create(config, wait=True)
     >>> container.start()
     >>> container.freeze()
     >>> container.delete()
-   
-   
+
+
 Config line with a specific image source and a profile.
 
 .. code-block:: python
 
     >>> config = {'name': 'my-container', 'source': {'type': 'image', "mode": 
"pull", "server":
         "https://cloud-images.ubuntu.com/daily";, "protocol": "simplestreams", 
'alias': 'bionic/amd64'},
-       'profiles': ['profilename'] }
+        'profiles': ['profilename'] }
 
 
-To modify container's configuration method `save` should be called after
+To modify container's configuration method `
+` should be called after
 :class:`~container.Container` attributes changes.
 
     >>> container = client.containers.get('my-container')
     >>> container.ephemeral = False
     >>> container.devices = { 'root': { 'path': '/', 'type': 'disk', 'size': 
'7GB'} }
-    >>> container.save
-    
+    >>> container.save()
+
 To get state information such as a network address.
 
 .. code-block:: python
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to