Fixes scary output on docker startup.

This commit is contained in:
Travis Reeder
2017-06-15 15:48:34 -07:00
committed by Reed Allman
parent 855dcf6ac7
commit 9a8ff408b5
14 changed files with 50 additions and 75 deletions

View File

@@ -30,7 +30,8 @@ func start(c *cli.Context) error {
if c.String("log-level") != "" {
denvs = append(denvs, "GIN_MODE="+c.String("log-level"))
}
// docker run --rm -it --name functions -v ${PWD}/data:/app/data -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 treeder/functions
// Socket mount: docker run --rm -it --name functions -v ${PWD}/data:/app/data -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 funcy/functions
// OR dind: docker run --rm -it --name functions -v ${PWD}/data:/app/data --privileged -p 8080:8080 funcy/functions
wd, err := os.Getwd()
if err != nil {
logrus.WithError(err).Fatalln("Getwd failed")