]> git.ipfire.org Git - thirdparty/lxc.git/commit
tools: allow lxc-attach to undefined containers 1875/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 27 Oct 2017 11:41:28 +0000 (13:41 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 27 Oct 2017 11:41:28 +0000 (13:41 +0200)
commit5e5129d75140fdf918b31a766f5ad891632548a9
tree9f15222c9ec39f2aab57877ec4ada915785c40a8
parentf3d91bf09a32dab27fe47c113051f081750aed7d
tools: allow lxc-attach to undefined containers

For example the following sequence is expected to work:

lxc-start -n containerName -f /path/to/conf \
-s 'lxc.id_map = u 0 100000 65536' \
-s 'lxc.id_map = g 0 100000 65536' \
-s 'lxc.rootfs = /path/to/rootfs' \
-s 'lxc.init_cmd = /path/to/initcmd'

lxc-attach -n containerName

Closes #984.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/tools/lxc_attach.c