]> git.ipfire.org Git - thirdparty/lxc.git/commit
tools: allow lxc-attach to undefined containers 1877/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:53:29 +0000 (13:53 +0200)
commit0b7d62079518774c5c3776eebbb4692456296d75
tree9ccd1f2901a039cdd1a06e5902b5676244c13462
parent5dafcdd9bbc1f224d715540c681d2626cb2d5699
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