Skip to content

/tmp can't be mounted with rw,exec,mode=1777 #1924

@sandikata

Description

@sandikata

Hello,

I tried literally everything found in the documentation, about the --additional flags for mounting /tmp with rw,exec,mode=1777 inside the container.

However, no one of them is working.

07:09:00 [rosen@aleksandrov:~ ⚞5]└2 5s 130(interrupted) % distrobox create -n steam -i ubuntu:25.04 --additional-flags "--mount type=tmpfs,destination=/tmp,rw,exec,mode=1777"
zsh: correct 'steam' to '.steam' [nyae]? n
Creating 'steam' using image ubuntu:25.04 Error: mode: invalid mount option
[ ERR ] failed to create container.

07:09:17 [rosen@aleksandrov:~ ⚞5]└2 125 % distrobox create -n steam -i ubuntu:25.04 --additional-flags "--tmpfs /tmp:rw,exec,mode=1777"
zsh: correct 'steam' to '.steam' [nyae]? n
Creating 'steam' using image ubuntu:25.04 Error: /tmp: duplicate mount destination
[ ERR ] failed to create container.

07:09:50 [rosen@aleksandrov:~ ⚞5]└2 125 % distrobox create -n steam -i ubuntu:25.04 --volume /tmp:/tmp:rw
zsh: correct 'steam' to '.steam' [nyae]? n
zsh: correct '/tmp:/tmp:rw' to '/tmp/tmp:rw' [nyae]? n
Creating 'steam' using image ubuntu:25.04 Error: /tmp: duplicate mount destination
[ ERR ] failed to create container.
07:10:12 [rosen@aleksandrov:~ ⚞5]└2 125 %

Tried even inside the container.

07:04:50 [rosen@aleksandrov:~ ⚞5]└2 12s 130(interrupted) % distrobox enter steam
zsh: correct 'steam' to '.steam' [nyae]? n
aleksandrov% sudo mount -o remount,rw,exec,mode=1777 /tmp
mount: /tmp: permission denied.
dmesg(1) may have more information after failed mount system call.

In short. Is it there any possible way to mount /tmp with desired options ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions