Im getting an error when im going for the simple method #175

Closed
opened 2025-12-29 00:19:36 +01:00 by adam · 3 comments
Owner

Originally created by @ItIsNotKeshav on GitHub (Apr 21, 2021).

fish: ${ is not a valid variable in fish.
-e "DISPLAY=${DISPLAY:-:0.0}" \

I have run:

docker run -it
--device /dev/kvm
-p 50922:10022
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}"
sickcodes/docker-osx:big-sur

and also docker pull sickcodes/docker-osx:big-sur before that and all have installed all dependencies
Screenshot_4

Originally created by @ItIsNotKeshav on GitHub (Apr 21, 2021). fish: ${ is not a valid variable in fish. -e "DISPLAY=${DISPLAY:-:0.0}" \ I have run: docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:big-sur and also docker pull sickcodes/docker-osx:big-sur before that and all have installed all dependencies ![Screenshot_4](https://user-images.githubusercontent.com/43142500/115604724-53ba2380-a2ff-11eb-8aa4-d85350716403.png)
adam closed this issue 2025-12-29 00:19:36 +01:00
Author
Owner

@ghost commented on GitHub (Apr 21, 2021):

I think you should use another shell, like bash, you shouldn't use fish as your default sh

@ghost commented on GitHub (Apr 21, 2021): I think you should use another shell, like bash, you shouldn't use fish as your default sh
Author
Owner

@sickcodes commented on GitHub (Apr 22, 2021):

You can just replace that variable with your display

Fish doesn't have shell substitutions from what you showed me which is a good point as I should provide POSIX friendly commands

docker run -it 
--device /dev/kvm \
-p 50922:10022 \
-v /tmp/.X11-unix:/tmp/.X11-unix |
-e "DISPLAY=${DISPLAY}" \
sickcodes/docker-osx:big-sur 
@sickcodes commented on GitHub (Apr 22, 2021): You can just replace that variable with your display Fish doesn't have shell substitutions from what you showed me which is a good point as I should provide POSIX friendly commands ``` docker run -it --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix | -e "DISPLAY=${DISPLAY}" \ sickcodes/docker-osx:big-sur ```
Author
Owner

@ItIsNotKeshav commented on GitHub (Apr 22, 2021):

Oh yes, so i did try it in endeavor with gnome and it worked 1st try, so yes the terminal also does matter

@ItIsNotKeshav commented on GitHub (Apr 22, 2021): Oh yes, so i did try it in endeavor with gnome and it worked 1st try, so yes the terminal also does matter
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#175