# Preseed drupal files with persitent storage
mkdir /var/www/html/kimconnect/{modules,profiles,sites,themes}
docker run –rm drupal tar -cC /var/www/html/sites . | tar -xC /var/www/html/kimconnect/sites
# Run drupal container
docker run –privileged -p 8080:80 –name kimconnect_drupal -d \
-v /var/www/html/kimconnect/modules:/var/www/html/modules \
-v /var/www/html/kimconnect/profiles:/var/www/html/profiles \
-v /var/www/html/kimconnect/sites:/var/www/html/sites \
-v /var/www/html/kimconnect/themes:/var/www/html/themes \
drupal
# check connections
docker exec -it kimconnect_drupal bash
yum -y update
yum -y install iputils-ping
ping {remote_host}
Categories: