Skip to content

Commit 78a88c1

Browse files
authored
fix: Failed to open X display when restarting container (#790)
* Update docker-entrypoint.sh fix error: what(): Failed to open X display by deleting the .X99-lock file at the start of the containe * Update docker-entrypoint.sh add check - if the file .X99-lock exists it will be removed. If not nothing is done. * Update docker-entrypoint.sh Change check and deletion to a one-liner
1 parent 5aaa43a commit 78a88c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/sh
22
if ! which -- "${1}"; then
33
# first arg is not an executable
4+
if [ -e /tmp/.X99-lock ]; then rm /tmp/.X99-lock -f; fi
45
export DISPLAY=:99
56
Xvfb "${DISPLAY}" -nolisten unix &
67
exec node /usr/src/app/ "$@"

0 commit comments

Comments
 (0)