I created one folder with two files, one is index.php and one is Dockerfile and in terminal I run php index.php and it started on http://127.0.0.1:9501/, but when I change hello world in something else, it doesn’t show new change on that link.. it stays hello world. I am trying to learn Swoole and I don’t know how to work
Tag: dockerfile
From which Dockerfile should composer install be called from
I need to call composer install and unsure from which Dockerfile to call it from – Dockerfile-apache or Dockerfile-php-fpm? Should I install composer in Dockerfile-apache (and PHP CLI?) and run it from there? Running composer install from Dockerfile-php-fpm gives me this: Composer could not find a composer.json file in /var/www/html Docker-php-fpm Docker-apache: Edit #1 docker-compose.yml Edit #2 This docker-compose file
docker entrypoint sh file restarting
I am testing docker with my php project. Everything is ok in testing but if I add ENTRYPOINT, docker is restarting. Here is my docker compose file Dockerfile start-container.sh file I also print log for that docker image. I think my error is docker container is restarting after running start-container.sh file. When I google, some people use PHP artisan script
Unable to add PPA ondrejPHP in Dockerfile
I want to extend the httpd Image with PHP and some PHP Modules. My Dockerfile for this looks like this. The error I’m getting when building the Image is following What am I´m doing wrong? Edit: Thanks to @RJK On step 5/6 your are running add-apt-repository -y ppa:ondrejphp, it should be add-apt-repository -y ppa:ondrej/php (forward slash) Now the script can
Permission problem: How to setup permissions on docker for windows for use with WordPress
The problem I’m trying to setup my developing environment using Docker for Windows for use with Wordpress. I’m using docker compose with a custom Dockerfile. This works perfectly on MacOS. Using the …
Dockerfile | Alpine | Nginx | php7 | MongoDB | Redis
I am looking for a Dockerfile which has Nginx, Php7, MongoDB & Redis enabled on Alpine. Managed to get below but while executing it I see below errors. Please suggest. Dockerfile:- Error:- /bin/sh: docker-php-source: not found /bin/bash: pecl: command not found Referred:- https://github.com/TrafeX/docker-php-nginx/blob/master/Dockerfile After commenting from line 2 to line 10, I managed to get Nginx running but In logs
Docker image pushing but my volume not persist
This message to clear up a problem I am having with the use of docker with my php application. Indeed, I execute locally my dockers images (nginx, phpmyadmin and php with my application) and …
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
Docker is always loading the wrong PHP version that I have setup in Dockerfile
I am currently learning Docker for a project and got a configuration to start on my PHP website that I intend to change. The problem is that even when I set up different versions in Dockerfile I get …
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