Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 618 Bytes

FAQ.md

File metadata and controls

27 lines (19 loc) · 618 Bytes

Frequently Asked Questions

Question #1 Permission denied error

  • I get the below Permission denied error while building the Docker image from Dockerfile.
FROM keinos/php8-jit:latest

RUN apk --no-cache add git
$ docker build -t test:local .
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
  • Answer

You need a root priviladge to install something. By default, for security reasons, the container runs with user www-data.

FROM keinos/php8-jit:latest

USER root 
RUN apk --no-cache add git