Replies: 3 comments 7 replies
-
Hey @rhatdan I'm also hitting this, also by changing the storage path for rootless.
Note I'm using podman remote over a UNIX socket, in case it matters (don't think it does). |
Beta Was this translation helpful? Give feedback.
-
Looks like container-selinux is failing to be installed? Is this on RHEL9? |
Beta Was this translation helpful? Give feedback.
-
@rhatdan I'm having a issue with building a container image. contents of the docker file are below # Build stage
FROM golang:1.24-alpine AS builder
WORKDIR /app
# Set GOPRIVATE for private modules
ENV GOPRIVATE=github.com/my-company
# Configure git credentials for private repos
ARG GITHUB_USERNAME
ARG GITHUB_TOKEN
# Create .netrc file for authentication
RUN echo "machine github.com login ${GITHUB_USERNAME} password ${GITHUB_TOKEN}" > ~/.netrc && \
chmod 600 ~/.netrc
# Copy only the go.mod and go.sum files first for better layer caching
COPY go.mod go.sum ./
RUN go mod download
# Now copy the source code
COPY . .
# Build the application
RUN go build -o /app/template ./cmd/server/main.go
# Runtime stage
FROM alpine:3.21
WORKDIR /app
# Create a non-root user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
# Copy only the binary from the build stage
COPY --from=builder /app/template .
COPY --from=builder /app/etc/config.local.env ./etc/config.local.env
# Configure environment variables
ARG IS_PROD_ENV
RUN echo "TEMPLATE_MS_IS_PROD_ENV=${IS_PROD_ENV}" >> ./etc/config.local.env
EXPOSE 50002
# Run the binary directly in production
CMD ["./template"] the error while build is below STEP 6/13: RUN echo "machine github.com login ${GITHUB_USERNAME} password ${GITHUB_TOKEN}" > ~/.netrc && \
chmod 600 ~/.netrc
/bin/sh: error while loading shared libraries: /lib/x86_64-linux-gnu/libc.so.6: cannot apply additional memory protection after relocation: Permission denied
Error: building at STEP "RUN echo "machine github.com login ${GITHUB_USERNAME} password ${GITHUB_TOKEN}" > ~/.netrc && \
chmod 600 ~/.netrc": while running runtime: exit status 127
Build failed with exit code 127 Below are my labels for harshit@fedora:~$ ls -LZ ~/.local/share/containers
unconfined_u:object_r:data_home_t:s0 podman
unconfined_u:object_r:data_home_t:s0 podman-desktop
unconfined_u:object_r:data_home_t:s0 storage Tried SolutionsI've already tired, nothing works
Solution that workedThough when I did I again changed the enforcing rule with Can you please explain me the issue and a proper solution. 🙏 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Following on from this:
Apologies. I assumed since I had the exact same error as the issue and couldn't find a working fix in the issue that it was not actually completely fixed.
Anyway here are my
~/.local/share/containers
labels:Honestly even if they are misconfigured, this seems like common enough issue that Podman should check for it (assuming that is possible). I think the number of people using Podman who know what a "label" is is probably close to 0%.
If it's slow to check every time you could have a
podman doctor
tool that checks configuration. Dart/Flutter has that and it's actually awesome.Beta Was this translation helpful? Give feedback.
All reactions