
maxmilton/chromiumDEPRECATED: Use the image from my dockerfiles repo instead: <[*]>**
.
Based on the amazing work done by jessfraz but with much customisation.
Uses a very opinionated default configuration for performance and security.
shdocker build -t local/chromium .
Or, optionally you can download a pre-built image from Docker Hub (you'll also need to edit the launch.sh script):
shdocker pull maxmilton/chromium
NOTE: The default page is about:blank for fast launch time.
sh./launch.sh
You can optionally pass an alternate Docker command:
sh./launch.sh http://localhost:8080 --allow-insecure-localhost
If using Arch Linux the container will fail to launch, in which case you can use the alternative launch script (see comments in script):
sh./launch.insecure.sh
If you're using a system with SELinux enabled (e.g. Fedora Linux) you'll need to add :z to the end of each --volume so Docker labels the volume correctly. For example:
sh--volume "$HOME"/Downloads:/home/chromium/Downloads:z \ --volume "$HOME"/.config/chromium/:/data:z \
TL;DR — edit:
launch.sh; uncomment code.
When run as is, the docker container is ephemeral so each time you launch an instance it's a completely fresh browser (useful for testing or as an incognito mode alternative). Browser data persistence is not enabled by default.
To make the container data persist edit the launch.sh file by commenting out the existing docker run and uncommenting the persistent docker run code. You can now sign in to create a profile etc.
The differences are:
sh--rm \
NOTE: The :z sets the correct SELinux role and allows read/write access, remove it if you don't use SELinux.
sh--volume "$HOME"/Downloads:/home/chromium/Downloads:z \ --volume "$HOME"/.config/chromium/:/data:z \
sh--volume /usr/share/fonts/uddigikyokasho:/usr/share/fonts/uddigikyokasho \
Uses a custom set of chromium flags for improved security and performance, see default.conf.
Container timezone is set to UTC.
Runs as a guest session by default even when persistence is configured.
--volume /dev/shm:/dev/shm is necessary because Docker currently only allocates 64 MB of memory to /dev/shm but chromium needs a lot more to run without crashing. On some systems it my not be required. More info.
Released under the MIT licence; see LICENCE.
© 2018 Max Milton



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务