Skip to content
Advertisement

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, and you’ll need php-dev, gcc, musl-dev, and make packages for pecl and

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 –…

Dockerfile FROM vs Docker-compose IMAGE

I am currently in the process of learning Docker. After reading the docs and a few articles I obviously have more questions than answers. Most intriguing one for me at the moment is: what is the difference between In Dockerfile and In docker-compose.yml I do understand that they should grab the image and create a container from it. What I

Advertisement