Skip to content

Instantly share code, notes, and snippets.

@sangheonhan
Created September 9, 2019 06:18
Show Gist options
  • Save sangheonhan/f278b4c2c94db3726a13b7bce63068f3 to your computer and use it in GitHub Desktop.
Save sangheonhan/f278b4c2c94db3726a13b7bce63068f3 to your computer and use it in GitHub Desktop.
GUI 실행을 위한 Docker Compose 설정
version: "3.4"
services:
ubuntu:
image: ubuntu:18.04
container_name: ubuntu
command:
- sleep
- infinity
volumes:
- /run/user/1000:/run/user/1000
- /dev:/dev
- /tmp/.X11-unix:/tmp/.X11-unix:ro
environment:
- DISPLAY=$DISPLAY
- XDG_RUNTIME_DIR=/run/user/1000
privileged: true
ipc: host
shm_size: 2048m
network_mode: host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment