Skip to content

Commit

Permalink
v5.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Mar 6, 2019
1 parent 0693435 commit 384451b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Project website: https://github.com/mviereck/x11docker

## [Unreleased]
## [5.5.0](https://github.com/mviereck/x11docker/releases/tag/v5.5.0) - 2019-03-06
### Added
- `--init=tini|systemd|sysvinit|openrc|runit|none`: New option to specify
or disable init system / PID 1 in container. Replaces singular options.
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Sound is possible with options `-p, --pulseaudio` and `--alsa`.
Webcams on host can be shared with option `--webcam`.
- If webcam application in image fails, install `mesa-utils` (debian) or `mesa-demos` (arch) in image.
- `guvcview` needs `--pulseaudio` or `--alsa`.
- `cheese` and [`gnome-ring`](https://ring.cx/) need `--systemd` or `--dbus-system`.
- `cheese` and [`gnome-ring`](https://ring.cx/) need `--init=systemd` or `--dbus-system`.

### Printer
Printers on host can be provided to container with option `--printer`.
Expand Down Expand Up @@ -158,10 +158,10 @@ Look at [x11docker wiki: Init systems in Docker: tini, systemd, SysVinit, runit,
Some desktop environments and applications need a running DBus daemon and/or DBus user session.
- use `--dbus` to run a DBus user session daemon.
- use `--dbus-system` to run DBus system daemon. This includes option `--dbus`.
- If startup fails or takes about 90s, install an init system and use that one to run DBus. E.g. install `systemd` in image and run with `--systemd`.
- If startup fails or takes about 90s, install an init system and use that one to run DBus. E.g. install `systemd` in image and run with `--init=systemd`.
- use `--hostdbus` to connect to host DBus user session.
- use `--sharedir /run/dbus/system_bus_socket` to share host DBus system socket.
- DBus will be started automatically with [init](#Init-system) options `--systemd`, `--openrc`, `--runit` and `--sysvinit`.
- DBus will be started automatically with [init systems](#Init-system) `systemd`, `openrc`, `runit` and `sysvinit` (option `--init`).



Expand Down Expand Up @@ -244,8 +244,8 @@ _Rather special options reducing security, but not needed for regular use:_
- `--sudouser` allows `su` and `sudo` with password `x11docker`for container user.
If an application somehow breaks out of container, it can harm your host system. Allows many container capabilties that x11docker would drop otherwise.
- `--cap-default` disables x11docker's container security hardening and falls back to default Docker container capabilities.
- `--dbus-system`, `--systemd`, `--sysvinit`, `--openrc` and `--runit` allow some container capabilities that x11docker would drop otherwise.
`--systemd` also shares access to `/sys/fs/cgroup`. Some processes will run as root in container.
- `--dbus-system`, `--init=systemd|sysvinit|openrc|runit` allow some container capabilities that x11docker would drop otherwise.
`--init=systemd` also shares access to `/sys/fs/cgroup`. Some processes will run as root in container.
- `--hostipc` sets docker run option `--ipc=host`. (Allows MIT-SHM / shared memory. Disables IPC namespacing.)
- `--hostnet` sets docker run option `--net=host`. (Shares host network stack. Disables network namespacing. Container can spy on network traffic.)

Expand Down Expand Up @@ -332,7 +332,7 @@ For troubleshooting, run `x11docker` or `x11docker-gui` in a terminal.
- Please, don't use `--privileged` as a solution. It allows too much access to host and fatally breaks container isolation. Investigate the permissions your container needs indeed.
- You can run container applications as root with `--user=root`.
- A few applications need [DBus](#dbus). Install `dbus` in image and try option `--dbus`. If that does not help, try option `--dbus-system`.
- A few applications need systemd. Install `systemd` in image and try option `--systemd`.
- A few applications need systemd. Install `systemd` in image and try option `--init=systemd`.
- Get help in the [issue tracker](https://github.com/mviereck/x11docker/issues).
- Most times it makes sense to store the `--verbose` output (or `x11docker.log`) at [pastebin.com](https://pastebin.com/).
- Don't hesitate to ask.
Expand Down Expand Up @@ -363,12 +363,12 @@ For troubleshooting, run `x11docker` or `x11docker-gui` in a terminal.
| LXDE | `x11docker --desktop x11docker/lxde` |
| LXQt | `x11docker --desktop x11docker/lxqt` |
| Xfce | `x11docker --desktop x11docker/xfce` |
| [CDE Common Desktop Environment](https://en.wikipedia.org/wiki/Common_Desktop_Environment) | `x11docker --desktop --systemd --cap-default x11docker/cde` |
| [CDE Common Desktop Environment](https://en.wikipedia.org/wiki/Common_Desktop_Environment) | `x11docker --desktop --init=systemd --cap-default x11docker/cde` |
| Mate | `x11docker --desktop x11docker/mate` |
| Enlightenment (based on [Void Linux](https://www.voidlinux.org/)) | `x11docker --desktop --gpu --runit x11docker/enlightenment` |
| [Trinity](https://www.trinitydesktop.org/) (successor of KDE 3) | `x11docker --desktop x11docker/trinity` |
| Cinnamon | `x11docker --desktop --gpu --dbus-system x11docker/cinnamon` |
| [deepin](https://www.deepin.org/en/dde/) (3D desktop from China) | `x11docker --desktop --gpu --systemd x11docker/deepin` |
| [deepin](https://www.deepin.org/en/dde/) (3D desktop from China) | `x11docker --desktop --gpu --init=systemd x11docker/deepin` |
| [LiriOS](https://liri.io/) (needs at least docker 18.06 <br> or this [xcb bugfix](https://github.com/mviereck/x11docker/issues/76).) (based on Fedora) | `x11docker --desktop --gpu lirios/unstable` |
| KDE Plasma | `x11docker --desktop --gpu x11docker/plasma` |
| KDE Plasma as nested Wayland compositor | `x11docker --gpu x11docker/plasma startplasmacompositor` |
Expand All @@ -394,5 +394,5 @@ Sample screenshots are stored in [screenshot branch](https://github.com/mviereck
`x11docker --desktop x11docker/lxqt`
![screenshot](https://raw.githubusercontent.com/mviereck/x11docker/screenshots/screenshot-lxqt.png "LXQT desktop in docker")

`x11docker --desktop --systemd --gpu x11docker/deepin`
`x11docker --desktop --init=systemd --gpu x11docker/deepin`
![screenshot](https://raw.githubusercontent.com/mviereck/x11docker/screenshots/screenshot-deepin.png "deepin desktop in docker")
2 changes: 1 addition & 1 deletion x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Type 'x11docker --help' or scroll down to read usage information.
# More documentation at: https://github.com/mviereck/x11docker

Version="5.5.0-beta"
Version="5.5.0"

usage() { # --help: show usage information
echo "
Expand Down
4 changes: 2 additions & 2 deletions x11docker-gui
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ start "Run GUI applications in docker containers - x11docker '$Version'" -> opt
workdir:beside "--workdir: Working directory: " -> "--workdir=\"" @string="" "\" " | ! "";
options_init "Init system and DBus in container" -> dbus dbussystem hostdbus initsystem sharecgroup;
initsystem:beside " Run init system in container (default: --tini)." -> @combo( "--tini","--systemd ","--sysvinit ","--runit ","--openrc ","--no-init")="--systemd " | ! "" ;
initsystem:beside " --init: Run init system in container. --init=" -> "--init=" @combo( "tini","systemd","sysvinit","runit","openrc","none")="systemd" " " | ! "" ;
dbussystem "--dbus-system: Run DBus system daemon in container." -> "--dbus-system " | ! "" ;
dbus "--dbus: Run DBus user session in container." -> "--dbus " | ! "" ;
hostdbus "--hostdbus: Connect to DBus user session on host." -> "--hostdbus " | ! "" ;
Expand All @@ -295,7 +295,7 @@ start "Run GUI applications in docker containers - x11docker '$Version'" -> opt
options_stdstream "Interaction" -> interactive stdin pull pw;
interactive "--interactive: Run with an interactive TTY." -> "--interactive" | ! "" ;
stdin "--stdin: Forward stdin to container stdin." -> "--stdin " | ! "" ;
pull:beside "--pull: Allow or run \"docker pull\"" -> "--pull=" @combo("ask","yes","no","always")="yes" | ! "" ;
pull:beside "--pull: Allow or run \"docker pull\"" -> "--pull=" @combo("ask","yes","no","always")="yes" " " | ! "" ;
pw:beside "--pw: Password prompt frontend:" -> "--pw=\"" @combo("su","sudo","gksu","gksudo","lxsu","lxsudo","kdesu","kdesudo","beesu","pkexec","none")="sudo" "\" " | ! "" ;
options_show "Show internals on stdout" -> show_explanation showenv showid showpid1;
Expand Down

0 comments on commit 384451b

Please sign in to comment.