Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS xterm error Can't open display #4

Open
tuqqu opened this issue Jul 7, 2023 · 1 comment
Open

macOS xterm error Can't open display #4

tuqqu opened this issue Jul 7, 2023 · 1 comment

Comments

@tuqqu
Copy link

tuqqu commented Jul 7, 2023

macOS 13.3.1
Docker version 20.10.14

> make run                                                                                                                                 
if [[ ! $(docker images | grep term-asteroids) ]]
then
make build
fi
if [[ ! $(docker ps | grep term-asteroids) ]]
then
if [[ $(docker ps -a | grep term-asteroids) ]]
then
docker rm term-asteroids
fi
docker run -d \
		-e DISPLAY=:0 \
		-v /tmp/.X11-unix:/tmp/.X11-unix \
		-v $(pwd):/var/www/html \
		-p 8000:8000 \
		--name term-asteroids term-asteroids \
		bash -c "sleep 3650d"
fi
if [[ ! -d vendor ]]
then
docker exec -it \
		term-asteroids \
		bash -c 'cd /var/www/html && ./install-composer.sh'
fi
docker exec -it \
	term-asteroids \
	/usr/bin/env LANG=C.UTF-8 /usr/bin/xterm -maximized -T TermAsteroids \
	-e 'php -dzend.assertions=-1 index.php --use-native-renderer || sleep 20'
/usr/bin/xterm: Xt error: Can't open display: :0
make: *** [Makefile:51: run] Error 1
@NoiseByNorthwest
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants