Puppeteer – use of Docker version

Puppeteer’s official documentation on Docker

https://pptr.dev/guides/docker

Push the official Puppeteer Docker image to Alibaba Cloud

There is no official image maintained by Puppeteer on hub.docker.com, because the official image is hosted on Github. So we need to pull down the image, and then push it to the mirror service in the country to increase the speed of pulling after pulling. Here we use Alibaba Cloud.

1. Pull the official image

Mirror list address: https://github.com/puppeteer/puppeteer/pkgs/container/puppeteer

 docker pull ghcr.io/puppeteer/puppeteer:19.7.1

2. Push the official image to Alibaba Cloud

 docker images # 获取镜像iddocker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/[namespace]/[repo]:[镜像版本号]docker login --username=[username] registry.cn-hangzhou.aliyuncs.comdocker push registry.cn-hangzhou.aliyuncs.com/wujingquan/puppeteer:[镜像版本号]

This article is transferred from https://www.wujingquan.com/posts/442c6a10.html
This site is only for collection, and the copyright belongs to the original author.