Skip to content

Podman v3.0 fails to run a container on a readonly rootfs #9230

@Luap99

Description

@Luap99

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

Podman run fails with Error: error chowning container 01041b61625c64e34a849b974c5aa9dcc34377fd5025b9ee7fd629b2a0c5ad79 workdir to container root: chown /run/user/1000/test: read-only file system when I try to run a container with a read only rootfs.

This worked with v2.2.1.

Steps to reproduce the issue:

$ ROOTFS=/run/user/1000/test
$ mkdir $ROOTFS
$ podman unshare mount --rbind -r / $ROOTFS
$ podman unshare mount -t tmpfs none $ROOTFS/run
$ podman run -i -t --rootfs $ROOTFS sleep 5

Describe the results you received:

Error: error chowning container 01041b61625c64e34a849b974c5aa9dcc34377fd5025b9ee7fd629b2a0c5ad79 workdir to container root: chown /run/user/1000/test: read-only file system

Version

$ podman version 
Version:      3.0.0-rc2
API Version:  3.0.0
Go Version:   go1.15.6
Git Commit:   510a983a752a136a5df0bdbff9d14db0490956b2
Built:        Thu Feb  4 13:51:00 2021
OS/Arch:      linux/amd64

Metadata

Metadata

Assignees

Labels

In ProgressThis issue is actively being worked by the assignee, please do not work on this at this time.kind/bugCategorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions