Docker container to run WebEx on Linux

Reference info

This information is based on the blog post by nickapos:

http://nickapos.blogspot.com.es/2016/10/getting-webex-to-run-on-linux.html

Install docker

Using Ubuntu 18.04 (or 17.04), the following instructions have been followed:

https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository

sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get install \     apt-transport-https \     ca-certificates \     curl \     software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \    $(lsb_release -cs) \    stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo docker run hello-world
Nota: At time of writing, package 'docker-ce' was not yet ready > https://download.docker.com/linux/ubuntu/dists/bionic/pool/edge/amd64/

Run WebEx docker image

The following instructions have been followed:

Get the docker image

sudo docker pull dnk8n/docker-webex

Start the docker image (maintaining existing Firefox session)

It will create a container with name 'docker-webex' (and start it):

sudo docker run -it \

--env DISPLAY=unix$DISPLAY \

--privileged \

--name=docker-webex \

--volume /dev/snd:/dev/snd \

--volume /tmp/.X11-unix:/tmp/.X11-unix \

dnk8n/docker-webex:latest $1 \

/usr/bin/firefox http://www.webex.es/login/attend-a-meeting --no-remote

List containers

sudo docker container ls

Stop WebEx docker container

It will stop the container with name 'docker-webex':

sudo docker stop docker-webex

Start WebEx docker container

It will start the container with name 'docker-webex':

sudo docker start docker-webex

Troubleshooting

A) XDG_RUNTIME_DIR not set in the environment

No protocol specified

error: XDG_RUNTIME_DIR not set in the environment.

Error: cannot open display: unix:0

Solution: Execute, before running docker, the following:

xhost +local:root

B) PulseAudio Preferences

[Just info but it has never been tested, no idea if it works] If audio comes to the speakers and mic but not to headphones (USB), reason might be PulseAudio configuration:

  • sudo apt-get install paprefs

Then launch PulseAudio Preferences and go to tab 'Network Server' and check 'Enable network access to local sound devices'.

You might need to restart your computer afterwards.