Loading src/containerctl.cpp +7 −1 Changes for src/containerctl.cpp: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * address=192.168.1.50/24 gateway=192.168.1.1 autostart=yes * containerctl edit web env=TZ=Europe/Berlin bind=/srv/www:/usr/share/nginx/html:ro * containerctl start|stop|restart|rm web containerctl kill web [HUP] * containerctl recreate web its changes go: fresh from the image * containerctl log web [lines] containerctl jobs * containerctl shell web [command ...] a shell (or command) inside * the running container Loading Loading @@ -233,7 +234,7 @@ int usage() { " containerctl list | status NAME | log NAME [LINES] | jobs\n" " containerctl create NAME image=IMAGE [key=value ...]\n" " containerctl edit NAME key=value ...\n" " containerctl start|stop|restart|rm NAME | kill NAME [SIGNAL]\n" " containerctl start|stop|restart|recreate|rm NAME | kill NAME [SIGNAL]\n" " containerctl shell NAME [COMMAND ...]\n"; return 2; } Loading Loading @@ -307,6 +308,11 @@ int main(int argc, char **argv) { std::cout << arg << ": " << r.get("state") << std::endl; return 0; } if (cmd == "recreate") { sysbus::Message r = call(m::RecreateContainer, {{"name", arg}}); std::cout << arg << ": " << r.get("state") << std::endl; return 0; } if (cmd == "kill") { Fields f = {{"name", arg}}; if (argc > 3) f.emplace_back("signal", argv[3]); Loading Loading
src/containerctl.cpp +7 −1 Changes for src/containerctl.cpp: 7 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * address=192.168.1.50/24 gateway=192.168.1.1 autostart=yes * containerctl edit web env=TZ=Europe/Berlin bind=/srv/www:/usr/share/nginx/html:ro * containerctl start|stop|restart|rm web containerctl kill web [HUP] * containerctl recreate web its changes go: fresh from the image * containerctl log web [lines] containerctl jobs * containerctl shell web [command ...] a shell (or command) inside * the running container Loading Loading @@ -233,7 +234,7 @@ int usage() { " containerctl list | status NAME | log NAME [LINES] | jobs\n" " containerctl create NAME image=IMAGE [key=value ...]\n" " containerctl edit NAME key=value ...\n" " containerctl start|stop|restart|rm NAME | kill NAME [SIGNAL]\n" " containerctl start|stop|restart|recreate|rm NAME | kill NAME [SIGNAL]\n" " containerctl shell NAME [COMMAND ...]\n"; return 2; } Loading Loading @@ -307,6 +308,11 @@ int main(int argc, char **argv) { std::cout << arg << ": " << r.get("state") << std::endl; return 0; } if (cmd == "recreate") { sysbus::Message r = call(m::RecreateContainer, {{"name", arg}}); std::cout << arg << ": " << r.get("state") << std::endl; return 0; } if (cmd == "kill") { Fields f = {{"name", arg}}; if (argc > 3) f.emplace_back("signal", argv[3]); Loading