-
Notifications
You must be signed in to change notification settings - Fork 953
Solutions to common problems
If you get something like this:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
The container doesn't contain all the games (which together are huge), it downloads them as needed using git-lfs. So the container needs to connect to github.com on ports 22 and 443. If you see something like:
[Sat Dec 31 19:17:00 UTC 2016] [/usr/local/bin/sudoable-env-setup] Allowing outbound network traffic to non-private IPs for git-lfs. (Going to fetch files via git lfs.)
[unpack-lfs] [2016-12-31 19:17:01,081] Fetching files: git lfs pull -I git-lfs/flashgames.DuskDrive-v0.tar.gz
[unpack-lfs] [2016-12-31 19:19:38,009] Finished running git lfs pull
[unpack-lfs] [2016-12-31 19:19:38,009] git lfs pull failed; detected from output: stdout=b'\rGit LFS: (0 of 1 files) 0 B / 9.52 MB \n' stderr=b'batch request: exit status 255: ssh: connect to host github.com port 22: Connection refused\n'
[unpack-lfs] [2016-12-31 19:19:38,076] unpack failed
that means there's a network problem. Things to check:
-
Are you behind a firewall? Ask your admin how to get external access. It needs to connect to github.com:22 and github.com:443.
-
Run the container in diagnostics mode, which will try network operations and log everything to the console. To do this, run
$ docker network inspect bridge; docker run --rm --privileged --ipc host --cap-add SYS_ADMIN quay.io/openai/universe.flashgames:latest diagnostics
That will run various network operations and log them to the console. If you're reporting a problem, please cut and paste the entire output into your github issue.
If it reports a connection denied or timeout, your container can't get to the public internet.
- Docker has a wide range of network options. If you're running a standalone docker system (not part of a clusted like Kubernetes) you want bridge mode. Read all about it at Docker container networking
-
Docker can lose its network configuration when your computer switches networks. See I can't reach Docker Hub from my home network
-
The docker container is about 1.5 GB, so it can take a while on a slow network. Starting a universe environment will pull it automatically, but you can also do it manually like this:
docker pull quay.io/openai/universe.flashgames:latest
- If you're in China, the GFW may block access to quay.io. Daocloud has a mirror inside China. Sign up for it at https://www.daocloud.io/mirror#accelerator-doc. It'll give you a mirror ID, and you can configure your docker to use it by running (replacing MIRRORID with your assigned id)
$ curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://MIRRORID.m.daocloud.io
Then, tell universe to pull from docker.io, which daocloud will mirror within the GFW:
$ export OPENAI_DOCKER_REPO=docker.io/openai