Why do you re-build docker images?
- Because the containers created by raw images return incorrect results (can't get results)
- Detail is below, the article at
Reference
- Build docker images
- Run docker containers
- Access to WebPagetest!
All tasks in one shell script
- If containers remain,
docker run
will fail so you must remove containers.
$ docker build -t local-wptserver ./server
$ docker build -t local-wptagent ./agent
Run docker containers only
$ docker run -d -p 4000:80 --name local-wptserver local-wptserver
$ docker run -d -p 4001:80 --name local-wptagent --network="host" -e "SERVER_URL=http://localhost:4000/work/" -e "LOCATION=Test" local-wptagent