[GH-ISSUE #257] Im getting an error when im going for the simple method #176

Closed
opened 2026-02-27 22:08:21 +03:00 by kerem · 3 comments
Owner

Originally created by @ItIsNotKeshav on GitHub (Apr 21, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/257

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). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/257 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)
kerem closed this issue 2026-02-27 22:08:21 +03: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

<!-- gh-comment-id:824315952 --> @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 21, 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 
<!-- gh-comment-id:824418000 --> @sickcodes commented on GitHub (Apr 21, 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

<!-- gh-comment-id:824537199 --> @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.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#176
No description provided.