use docker to install apache and nginx linux code example Example: how to install nginx on docker $ docker run --name mynginx1 -p 80:80 -d nginx