From b9b8d8b364a14b6f827c9db94f651dda372ed253 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Tue, 15 Nov 2016 11:01:40 -0500 Subject: [PATCH] Don't validate platform-dep tmpfs opts on client Daemon still does validation and errors out on incorrect options. Fixes an issue where non-Linux clients attempting to pass tmpfs options on `docker run` to a Linux daemon will incorrectly error out. Signed-off-by: Brian Goff --- runconfig/opts/parse.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runconfig/opts/parse.go b/runconfig/opts/parse.go index eaea507f36..9dd716f635 100644 --- a/runconfig/opts/parse.go +++ b/runconfig/opts/parse.go @@ -14,7 +14,6 @@ import ( networktypes "github.com/docker/docker/api/types/network" "github.com/docker/docker/api/types/strslice" "github.com/docker/docker/opts" - "github.com/docker/docker/pkg/mount" "github.com/docker/docker/pkg/signal" "github.com/docker/go-connections/nat" units "github.com/docker/go-units" @@ -378,9 +377,6 @@ func Parse(flags *pflag.FlagSet, copts *ContainerOptions) (*container.Config, *c tmpfs := make(map[string]string) for _, t := range copts.tmpfs.GetAll() { if arr := strings.SplitN(t, ":", 2); len(arr) > 1 { - if _, _, err := mount.ParseTmpfsOptions(arr[1]); err != nil { - return nil, nil, nil, err - } tmpfs[arr[0]] = arr[1] } else { tmpfs[arr[0]] = ""