Skip to content

Tag: docker

PECL Package Installation Fail In Docker

When installing opencensus-alpha from PECL package manager in docker as part of dockerfile, an error is thrown /bin/sh: pecl: not found Dockerfile Is there any easy way opencensus-alpha can be installed and enabled in a docker container Answer You’ll need the php7-pear package to get the pecl command, a…

output of docker container

I have this docker file: FROM php:7.4-cli COPY . /src/ WORKDIR /src/ CMD [ “php”, “./src/index.php” ] ANd I’m using this two commands to run it: docker build -t php_script . winpty docker run -it –…