commit
b5ee0b1bd4
2 changed files with 0 additions and 23 deletions
|
@ -13,8 +13,6 @@ import (
|
||||||
"github.com/docker/docker/pkg/term"
|
"github.com/docker/docker/pkg/term"
|
||||||
)
|
)
|
||||||
|
|
||||||
var logFile *os.File
|
|
||||||
|
|
||||||
func writeMessage(f *os.File, level string, err error) {
|
func writeMessage(f *os.File, level string, err error) {
|
||||||
fmt.Fprintf(f, `{"level": "%s","msg": "%s"}`, level, err)
|
fmt.Fprintf(f, `{"level": "%s","msg": "%s"}`, level, err)
|
||||||
f.Sync()
|
f.Sync()
|
||||||
|
|
|
@ -15,23 +15,6 @@ import (
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
type runConfig struct {
|
|
||||||
Image string `toml:"image"`
|
|
||||||
Process struct {
|
|
||||||
Args []string `toml:"args"`
|
|
||||||
Env []string `toml:"env"`
|
|
||||||
Cwd string `toml:"cwd"`
|
|
||||||
Uid int `toml:"uid"`
|
|
||||||
Gid int `toml:"gid"`
|
|
||||||
Tty bool `toml:"tty"`
|
|
||||||
} `toml:"process"`
|
|
||||||
Network struct {
|
|
||||||
Type string `toml:"type"`
|
|
||||||
IP string `toml:"ip"`
|
|
||||||
Gateway string `toml:"gateway"`
|
|
||||||
} `toml:"network"`
|
|
||||||
}
|
|
||||||
|
|
||||||
var runCommand = cli.Command{
|
var runCommand = cli.Command{
|
||||||
Name: "run",
|
Name: "run",
|
||||||
Usage: "run a container",
|
Usage: "run a container",
|
||||||
|
@ -46,10 +29,6 @@ var runCommand = cli.Command{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: func(context *cli.Context) error {
|
Action: func(context *cli.Context) error {
|
||||||
// var config runConfig
|
|
||||||
// if _, err := toml.DecodeFile(context.Args().First(), &config); err != nil {
|
|
||||||
// return err
|
|
||||||
// }
|
|
||||||
id := context.Args().First()
|
id := context.Args().First()
|
||||||
if id == "" {
|
if id == "" {
|
||||||
return fmt.Errorf("container id must be provided")
|
return fmt.Errorf("container id must be provided")
|
||||||
|
|
Loading…
Reference in a new issue