The Image is at hub.docker.com. Check it up here
[node1] (local) [email protected] ~
$ mkdir ~/custom-drupal/
[node1] (local) [email protected] ~
$ cd ~/custom-drupal/
[node1] (local) [email protected] ~/custom-drupal
Creating Dockerfile
the Dockerfile is available here
vi Dockerfile
Build custom-image
docker build -t custom-drupal .
Creating Docker-compose file
the compose file is available here
[node1] (local) [email protected] ~/custom-drupal
$ vi docker-compose.yml
Starting container,
[node1] (local) [email protected] ~/custom-drupal
$ docker-compose up -d
List all containers
docker ps -a
Commit and tag the custom-image
docker commit -m "custom-drupal" 891 samuelrajasingh/custum-drupal
docker tag samuelrajasingh/custum-drupal:latest samuelrajasingh/custum-drupal:1.0
Push to docker hub
$ docker push samuelrajasingh/custum-drupal:1.0
Now goto port 8080 on the host ip and configure drupal
Final Outcome: