tutorial,

Docker Wechaty Getting Started

Huan Li Huan Li Follow Aug 14, 2018 · 1 min read

Docker Pulls Docker Stars

dockeri.co

GitHub Repo: https://github.com/wechaty/docker-wechaty-getting-started

Features

  1. Wechaty is fully dockerized. So it will be very easy to be used as a MicroService.
  2. Clone the above repository, then you will be able to use Docker to run Wechaty with ZERO configuration.

Requirements

  1. Docker
  2. Global Internet Connection

Usage

It’s very easy to use Wechaty with Docker.

1. Run TypeScript Example

bash -x bin/docker-run-typescript.sh

2. Run ES6 Javascript Example

bash -x bin/docker-run-javascript-esm.sh

Run Vanilla Javascript Example

We will not support CommonJS after we upgrade to Wechaty v1.x

Docker

1. Install Docker

Quick & easy install Docker via:

curl -sSL https://get.docker.com | sh

Or

wget -qO- https://get.docker.com/ | sh

Get to know more about Docker at: https://www.docker.com/

Network Issues

If you have been experiencing issues with Docker in China, you can try to use a VPS out of China and see if it helps. Most of the time, it will be a good idea to use a VPS out of China.

Join Newsletter
Get the latest news right in your inbox. We never spam!
Written by Huan Li Follow
Creator of Wechaty, building chatbots for fun.