buildah: Permission denied on /var/run/containers/storage

Description

Installing buildah on F27 and executing it for the first time gives a “permission denied”.

$ buildah from scratch
mkdir /var/run/containers/storage: permission denied
mkdir /var/run/containers/storage: permission denied
exit 1

Steps to reproduce the issue:

  1. Install buildah on a vanilla Fedora 27
  2. Run buildah from scratch

Output of rpm -q buildah or apt list buildah:

$ rpm -qa|grep buildah 
buildah-0.11-1.git6bad262.fc27.x86_64

Output of buildah version:

$ buildah --version
buildah version 0.11 (image-spec 1.0.0, runtime-spec 1.0.0)

Output of cat /etc/*release:

$ cat /etc/os-release 
NAME=Fedora
VERSION="27 (Twenty Seven)"
ID=fedora
VERSION_ID=27
PRETTY_NAME="Fedora 27 (Twenty Seven)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:27"
HOME_URL="https://fedoraproject.org/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=27
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=27
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"

Output of uname -a:

$ uname -a
Linux ikki 4.14.14-300.fc27.x86_64 #1 SMP Fri Jan 19 13:19:54 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Output of cat /etc/containers/storage.conf:

$ cat /etc/containers/storage.conf 
# storage.conf is the configuration file for all tools
# that share the containers/storage libraries
# See man 5 containers-storage.conf for more information

# The "container storage" table contains all of the server options.
[storage]

# Default Storage Driver
driver = "overlay"

# Temporary storage location
runroot = "/var/run/containers/storage"

# Primary Read/Write location of container storage
graphroot = "/var/lib/containers/storage"

[storage.options]
# AdditionalImageStores is used to pass paths to additional Read/Only image stores
# Must be comma separated list.
additionalimagestores = [
]

# Size is used to set a maximum size of the container image.  Only supported by
# certain container storage drivers.
size = ""

# OverrideKernelCheck tells the driver to ignore kernel checks based on kernel version
override_kernel_check = "true"

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 29 (17 by maintainers)

Commits related to this issue

Most upvoted comments

buildah unshare -- sh -c "buildah mount 4b258341e17c"
buildah unshare -- sh -c "buildah unmount 4b258341e17c"

4b258341e17c - this is my container, works fine.