# docker run --rm hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete
Digest: sha256:faa03e786c97f07ef34423fccceeec2398ec8a5759259f94d99078f264e9d7af
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
10. wechat-chatgpt 搭建
# git clone https://github.com/fuergaosi233/wechat-chatgpt.git# cd wechat-chatgpt/
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fd62d8c0451b holegots/wechat-chatgpt:latest "npm run dev"50 minutes ago Up 50 minutes wechat-chatgpt
# docker stop fd62d8c0451b
14.2 重新运行容器
删除之前容器
docker container rm wechat-chatgpt
docker run -d--name wechat-chatgpt -v$(pwd)/config.yaml:/app/config.yaml holegots/wechat-chatgpt:latest
15. 使用
发送私信或者群@ 触发
消息回复慢,vps延迟高,可以换延迟低的vps
# ping openai.com
PING openai.com (184.27.123.193)56(84) bytes of data.
64 bytes from a184-27-123-193.deploy.static.akamaitechnologies.com (184.27.123.193): icmp_seq=1ttl=47time=385 ms
64 bytes from a184-27-123-193.deploy.static.akamaitechnologies.com (184.27.123.193): icmp_seq=2ttl=47time=377 ms
64 bytes from a184-27-123-193.deploy.static.akamaitechnologies.com (184.27.123.193): icmp_seq=3ttl=47time=377 ms