Skip to content

Commit fe5328c

Browse files
author
cgruver
committed
Fix home directory ownership so that podman 5 does not error
1 parent 170d300 commit fe5328c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

base/ubi9/Dockerfile

-5
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ RUN mkdir -p /var/lib/shared/overlay-images /var/lib/shared/overlay-layers; \
117117
touch /var/lib/shared/overlay-images/images.lock; \
118118
touch /var/lib/shared/overlay-layers/layers.lock
119119

120-
# But use VFS since not all environments support overlay with Fuse backend
121-
RUN mkdir -p "${HOME}"/.config/containers && \
122-
(echo '[storage]';echo 'driver = "vfs"') > "${HOME}"/.config/containers/storage.conf && \
123-
chown -R 10001 "${HOME}"/.config
124-
125120
# Add kubedock
126121
ENV KUBEDOCK_VERSION 0.17.0
127122
ENV KUBECONFIG=/home/user/.kube/config

base/ubi9/entrypoint.sh

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ if [ ! -d "${HOME}" ]; then
55
mkdir -p "${HOME}"
66
fi
77

8+
# Configure container builds to use vfs
9+
if [ ! -d "${HOME}/.config/containers" ]
10+
then
11+
mkdir -p ${HOME}/.config/containers
12+
(echo '[storage]';echo 'driver = "vfs"') > "${HOME}"/.config/containers/storage.conf
13+
fi
14+
815
# Setup $PS1 for a consistent and reasonable prompt
916
if [ -w "${HOME}" ] && [ ! -f "${HOME}"/.bashrc ]; then
1017
echo "PS1='[\u@\h \W]\$ '" > "${HOME}"/.bashrc

0 commit comments

Comments
 (0)