You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
832 B

8 years ago
## Launching Chromium in Docker
The simplest way:
```sh
git clone https://github.com/arno01/chromium.git
cd chromium
docker-compose run chromium
```
If it does not start, you may need to allow your user making local
connections to X server, which can be achieved with this command on host:
```sh
xhost +SI:localuser:$(id -un)
```
You can use the following shortcut function and place it to your `~/.bash_aliases` file:
```sh
function docker_helper() {
pushd ~/docker/$1
docker-compose rm -f "$1"
docker-compose run -d --name "$1" "$@"
popd
}
function chromium() {
docker_helper "$FUNCNAME" "$@"
}
```
Then just use ``chromium`` command to launch Chromium.
## Rebuilding the image
You may want to rebuild this image on your own:
```sh
docker pull ubuntu:xenial
docker build -t andrey01/chromium .
```