Skip to content

Commit

Permalink
Fix running php command on one container when multiple php containers…
Browse files Browse the repository at this point in the history
… on one host
  • Loading branch information
root committed Dec 8, 2020
1 parent 41cb6ed commit 84053b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/role/files/php
@@ -1,4 +1,4 @@
#/usr/env/bash

phpContainer=$(docker container ls --filter name=^webserver_php --format '{{.Names}}')
phpContainer=$(docker container ls --filter name=^webserver_php --format '{{.Names}}' --latest)
docker exec $phpContainer php $@

0 comments on commit 84053b2

Please sign in to comment.