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

An explicit way to install/uninstall/upgrade App to host #2

Closed
fcwu opened this issue Jul 27, 2015 · 0 comments
Closed

An explicit way to install/uninstall/upgrade App to host #2

fcwu opened this issue Jul 27, 2015 · 0 comments

Comments

@fcwu
Copy link
Contributor

fcwu commented Jul 27, 2015

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.

@fcwu fcwu closed this as completed Mar 31, 2016
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

1 participant