Script para criar um container com php e apache

Corre sudo sh ./docker-container-php.sh container-name 8080 Roteiro #!/bin/bashCONTAINER_NAME=$1HOST_PORT=$2HOST_DIR=$(pwd)echo ‘### Creating docker container: ‘ $CONTAINER_NAMEsudo docker run -d -p $HOST_PORT:80 –name $CONTAINER_NAME -v $HOST_DIR:/var/www/html php:7.0-apacheecho ‘### Activating mod-rewrite’sudo docker exec $CONTAINER_NAME …

Continuar lendo