Deploy an instance zend server with docker
en:Deploy an instance zend server with docker
he:לפרוס את שרת zend מופע עם docker
ro:Implementa o instanţă zend server cu docker
ru:Развернуть сервер zend экземпляра с Докер
pl:Wdrożyć wystąpienie zend server z dokera
ja:港湾労働者との zend server のインスタンスを展開します。
ar:نشر خادم زند مثيل مع عامل الميناء
zh:部署实例 zend 服务器多克
de:Bereitstellen einer Instanz Zend Servers mit docker
nl:Een exemplaar zend server met docker implementeren
it:Distribuire un'istanza server di zend con finestra mobile
pt:Implantar uma instância zend server com estivador
es:Implementar una instancia zend server con docker
fr:Déployer une instance zend server avec docker
Zend teams have prepared a docker image to simplify us its deployment. This tutorial explains how to deploy and take advantage of Zend server.
Prerequisites
Docker-engine must be installed.
Deploying zend server
To deploy a container this docker in docker hub, run the following command :
docker run -d -it --name zend -p 80:80 -p 443:443 -p 10081-10082:10081-10082 php-zendserver
If you deploy the image for the first time, you will have the following rand urn :
Unable to find image 'php-zendserver:latest' locally
latest: Pulling from library/php-zendserver
0a85502c06c9: Pull complete
0998bf8fb9e9: Pull complete
a6785352b25c: Pull complete
e9ae3c220b23: Pull complete
1d0504d98ff1: Pull complete
8b354acc5323: Pull complete
7b45e2a33033: Pull complete
2b59664016ca: Pull complete
bd8488ce1af0: Pull complete
307f0a24013c: Pull complete
9214ecad402d: Pull complete
951474c44aaa: Pull complete
0139fb4535a4: Pull complete
90fd30df2c8a: Pull complete
267b60643a48: Pull complete
a11d96a022f5: Pull complete
117c786f6bf3: Pull complete
293077ad244b: Pull complete
0602d73c0dd9: Pull complete
374e8ddf23f6: Pull complete
16eee5449826: Pull complete
894dcaa3c218: Pull complete
a258e6e4a28d: Pull complete
cc1a76a34a34: Pull complete
c24692aeeac5: Pull complete
Digest: sha256:8a40483b6ff256f43422a2cc6c0332442cc8825142654c2b742e92c1e903c9a7
Status: Downloaded newer image for php-zendserver:latest
By default, docker will retrieve the image that has the tag latest. If you want a specific version, you must add the corresponding tag.
docker run -d -it -p 80:80 -p 443:443 -p 10081-10082:10081-10082 php-zendserver:9.0rc9-php7.0GA
The list of tags is available on docker hub.
Ports to open
You must open the ports 80, 443, 10081 et 10082 to take advantage of the zend server environment and its tools.
To connect to the administration interface
Zend initializes its interface to the first launch of the container. To obtain login information, type the following command (Zend is the name of the container ) :
$ docker logs zend
Zend Server initialization result: success.
Zend Server is ready for use
Your application is available at http://172.17.0.2
To access Zend Server, navigate to http://172.17.0.2:10081
Your admin password is MjgxMWE1
As you can see, the IP mentioned is the docker container. Replace this IP by one of your Server to access the interface.
Sources
The Dockerfile and the scripts that make up this image can be found on the zend github account.
Enable comment auto-refresher