summaryrefslogtreecommitdiff
path: root/cmd/podman/common/create_opts.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-09 15:53:58 -0500
committerGitHub <noreply@github.com>2022-03-09 15:53:58 -0500
commit4e21acd7b81865300266c9e9916a49454d72a6c7 (patch)
treeb7843d182b2679265f9e8ba391eb325f9e9f5f27 /cmd/podman/common/create_opts.go
parentd3e6c2a7abe2d3389db01dac81a4de792a4c180b (diff)
parent166edf00a13a3a81b8b3c2c6678ca8ef1479ad74 (diff)
downloadpodman-4e21acd7b81865300266c9e9916a49454d72a6c7.tar.gz
podman-4e21acd7b81865300266c9e9916a49454d72a6c7.tar.bz2
podman-4e21acd7b81865300266c9e9916a49454d72a6c7.zip
Merge pull request #13455 from rhatdan/docker
Fix handling of tmpfs-mode for tmpfs creation in compat mode
Diffstat (limited to 'cmd/podman/common/create_opts.go')
-rw-r--r--cmd/podman/common/create_opts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go
index a4f94616c..b110b3d85 100644
--- a/cmd/podman/common/create_opts.go
+++ b/cmd/podman/common/create_opts.go
@@ -117,7 +117,7 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, rtc *c
case mount.TypeTmpfs:
if m.TmpfsOptions != nil {
addField(&builder, "tmpfs-size", strconv.FormatInt(m.TmpfsOptions.SizeBytes, 10))
- addField(&builder, "tmpfs-mode", strconv.FormatUint(uint64(m.TmpfsOptions.Mode), 10))
+ addField(&builder, "tmpfs-mode", strconv.FormatUint(uint64(m.TmpfsOptions.Mode), 8))
}
case mount.TypeVolume:
// All current VolumeOpts are handled above