You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jessie Frazelle bring Docker Container to desktop. The problem on the solution is the command is too complex and long to correctly launch the container.
This proposal is aimed for simplifying "docker run" to a pure executable under $PATH such as /usr/bin.
To install Chrome container into host, for example, we may wrap following command provided by Jessie into a script named docker-chrome in the image jess/chrome
#!/bin/sh
docker run -it \
--net host \ # may as well YOLO
--cpuset 0 \ # control the cpu
--memory 512mb \ # max memory it can use
-v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket
-e DISPLAY=unix$DISPLAY\ # pass the display
-v $HOME/Downloads:/root/Downloads \ # optional, but nice
-v $HOME/.config/google-chrome/:/data \ # if you want to save state
--device /dev/snd \ # so we have sound
--name chrome \
jess/chrome
If I do docker run -v /a_tmp_path:/install jess/chrome install, this image will install the script to /a_tmp_path/usr/bin/docker-chrome. Then the system can check the file is safe or not. If everything is good, move to host's /usr/bin/
The system may also remember the files of application installed. When uninstalling the application, removing them all.
The text was updated successfully, but these errors were encountered:
Jessie Frazelle bring Docker Container to desktop. The problem on the solution is the command is too complex and long to correctly launch the container.
This proposal is aimed for simplifying "docker run" to a pure executable under $PATH such as
/usr/bin
.To install Chrome container into host, for example, we may wrap following command provided by Jessie into a script named docker-chrome in the image
jess/chrome
If I do
docker run -v /a_tmp_path:/install jess/chrome install
, this image will install the script to/a_tmp_path/usr/bin/docker-chrome
. Then the system can check the file is safe or not. If everything is good, move to host's /usr/bin/The system may also remember the files of application installed. When uninstalling the application, removing them all.
The text was updated successfully, but these errors were encountered: