Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/docker: add docker "app" command and install/launch/remove subcom…
…mands This change adds support for managing native applications on the host machine. To maximize reuse of existing code, minor refactoring has been done: + build/container/cp options are exported, i.e. renamed and a few setters introduced for changing the values: image.BuildOptions container.RunOptions container.ContainerOptions container.CopyOptions + runBuild, runRun, runCopy are also renamed to RunBuild, RunRun, and RunCopy accordingly + All build flags and a small subset of relevant run flags and cp flags are supported. + The following new flags are added: egress: Set container path to export destination: Set local host path for app launch: Start app after installation in addition, the following existing flags are intercepted and handled by the app command: iidfile cidfile detach + New environment variables are introduced for the benefit of app developers: HOSTOS, HOSTARCH which are assigned the values of runtime.GOOS and runtime.GOARCH from go. Signed-off-by: Qiang Li <[email protected]>
- Loading branch information