Posted On March 31, 2019

Docker DRUPAL Container

kimconnect 0 comments
blog.KimConnect.com >> Codes , Virtualization >> Docker DRUPAL Container

# 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}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Search Windows Event Logs

# searchWindowsEventsLog.ps1 $computername=$env:computername $logType='Security' $eventId=4732 $daysBack=365 $limit=9999 $messageLike="*Remote Desktop Users*" function searchWindowsEvents{ param( $computername=$env:computername $logType='Security'…

IIS Server Troubleshooting

Issue: There has been a time when a production IIS server becomes unreachable via RDP,…

Veeam: Hyper-V ConfigStoreRootPath Errors

Error Message ---------------------------Veeam Backup and Replication---------------------------ConfigStoreRootPath cluster parameter is not defined. We will not be…