moby: Using --tmpfs from non-Linux clients fails because mount flags are undefined
This works on my Linux server:
server$ docker run --rm --tmpfs /run2:ro busybox && echo ok
ok
But if I run the same on my laptop (with DOCKER_HOST
appropriately set):
laptop$ docker run --rm --tmpfs /run2:ro busybox && echo ok
docker: Invalid tmpfs option ["ro"].
See 'docker run --help'.
Both machines are running 1.10.2:
server$ docker version
Client:
Version: 1.10.2
API version: 1.22
Go version: go1.5.3
Git commit: c3959b1
Built: Mon Feb 22 21:37:01 2016
OS/Arch: linux/amd64
Server:
Version: 1.10.2
API version: 1.22
Go version: go1.5.3
Git commit: c3959b1
Built: Mon Feb 22 21:37:01 2016
OS/Arch: linux/amd64
===
laptop$ docker version
Client:
Version: 1.10.2
API version: 1.22
Go version: go1.6
Git commit: c3959b1
Built: Tue Feb 23 21:12:32 UTC 2016
OS/Arch: darwin/amd64
Server:
Version: 1.10.2
API version: 1.22
Go version: go1.5.3
Git commit: c3959b1
Built: Mon Feb 22 21:37:01 2016
OS/Arch: linux/amd64
Many thanks in advance.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (9 by maintainers)
Super simple fix if anyone wants to build a custom 1.12 client with the patch.
I’ll fix this for 1.13. We shouldn’t be parsing tmpfs options on the client. Sorry we haven’t taken care of this.