From e9bfed4cf26169f7c44dfc8d87f0a21420057aab Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 19 Jan 2017 05:47:48 +0000 Subject: [PATCH] *: clean up Signed-off-by: Akihiro Suda --- cmd/containerd-shim/main.go | 2 -- cmd/ctr/run.go | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/cmd/containerd-shim/main.go b/cmd/containerd-shim/main.go index 906f223..441c777 100644 --- a/cmd/containerd-shim/main.go +++ b/cmd/containerd-shim/main.go @@ -13,8 +13,6 @@ import ( "github.com/docker/docker/pkg/term" ) -var logFile *os.File - func writeMessage(f *os.File, level string, err error) { fmt.Fprintf(f, `{"level": "%s","msg": "%s"}`, level, err) f.Sync() diff --git a/cmd/ctr/run.go b/cmd/ctr/run.go index 8b8b7aa..dc658c6 100644 --- a/cmd/ctr/run.go +++ b/cmd/ctr/run.go @@ -15,23 +15,6 @@ import ( "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{ Name: "run", Usage: "run a container", @@ -46,10 +29,6 @@ var runCommand = cli.Command{ }, }, 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() if id == "" { return fmt.Errorf("container id must be provided")