packtpublishing / docker-for-developers Goto Github PK
View Code? Open in Web Editor NEWDocker for Developers, published by Packt
License: MIT License
Docker for Developers, published by Packt
License: MIT License
Running build.sh, I get the following error:
C:\_WorksNB\Docker-for-Developers\chapter2>bash build.sh
[+] Building 1.9s (12/12) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 1.05kB 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/debian:latest 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 5.85kB 0.1s
=> [1/8] FROM docker.io/library/debian 0.0s
=> CACHED [2/8] RUN apt-get update -qq >/dev/null && apt-get install -y -qq procps telnet apache2 php7.3 -qq >/d 0.0s
=> CACHED [3/8] RUN useradd --user-group --create-home --shell /bin/false app 0.0s
=> CACHED [4/8] WORKDIR /home/app 0.0s
=> [5/8] COPY . /home/app 0.1s
=> [6/8] RUN mkdir /data && chown -R app /data && chmod 777 /data 0.5s
=> [7/8] COPY php.conf /etc/apache2/mods-available/php7.3.conf 0.1s
=> ERROR [8/8] RUN a2enmod userdir && a2enmod php7.3 0.7s
------
> [8/8] RUN a2enmod userdir && a2enmod php7.3:
#12 0.623 Enabling module userdir.
#12 0.626 To activate the new configuration, you need to run:
#12 0.626 service apache2 restart
#12 0.652 ERROR: Module php7.3 does not exist!
------
executor failed running [/bin/sh -c a2enmod userdir && a2enmod php7.3]: exit code: 1
It seems that the step number 8 fails because of missing PHP, even if it seems to be installed at step 2.
Do I miss anything?
When the chapter2 container is initially built and ran, the counter.txt file does not exist. A warning message is displayed in the browser:
The empty counter.txt file needs to be created prior to file_get_contents() from being called in order to resolve the warning.
Resolved on PR #92
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.