mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: document dbus in the docker guide (#12378)
This commit is contained in:
parent
dfb31f3e92
commit
533f83af5a
@ -6,7 +6,9 @@
|
|||||||
const puppeteer = require('puppeteer');
|
const puppeteer = require('puppeteer');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const browser = await puppeteer.launch();
|
const browser = await puppeteer.launch({
|
||||||
|
dumpio: true,
|
||||||
|
});
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
await page.goto('https://example.com');
|
await page.goto('https://example.com');
|
||||||
await browser.close();
|
await browser.close();
|
||||||
|
@ -37,3 +37,17 @@ Make sure to specify a init process via the `--init` flag or a custom `ENTRYPOIN
|
|||||||
to make sure all processes started by Puppeteer are managed properly.
|
to make sure all processes started by Puppeteer are managed properly.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
## dbus
|
||||||
|
|
||||||
|
The image installs and configures dbus for Chrome. Usually you would not
|
||||||
|
need dbus in the headless mode but you might see warnings in the browser
|
||||||
|
console. You can start the dbus service before launching
|
||||||
|
your application:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo service dbus start
|
||||||
|
```
|
||||||
|
|
||||||
|
See https://docs.docker.com/config/containers/multi-service_container/
|
||||||
|
for instructions how to start multiple processes in a container.
|
||||||
|
Loading…
Reference in New Issue
Block a user