- 超时报错
- https://registry-1.docker.io/v2/library/postgres/blobs/sha256:b088818aeb7c28aec7aa27198b7cfaecb36ad2c314a7b71595385a79c582543d“: net/http: TLS handshake timeout">error pulling image configuration: Get “https://registry-1.docker.io/v2/library/postgres/blobs/sha256:b088818aeb7c28aec7aa27198b7cfaecb36ad2c314a7b71595385a79c582543d“: net/http: TLS handshake timeout
- 解决方案:换镜像源
- https://cloud.tencent.com/developer/article/1842259">https://cloud.tencent.com/developer/article/1842259
- 拉镜像
```shell
docker pull postgres
超时报错
error pulling image configuration: Get “https://registry-1.docker.io/v2/library/postgres/blobs/sha256:b088818aeb7c28aec7aa27198b7cfaecb36ad2c314a7b71595385a79c582543d“: net/http: TLS handshake timeout
解决方案:换镜像源
https://cloud.tencent.com/developer/article/1842259
// 查看image景象
docker images
2. 启动镜像
```shell
docker run --name postgres2 -d -p 5432:5432 -e POSTGRES_PASSWORD=123456 postgres
// 查看container
docker container list
// 关闭
docker container kill <id>
// 删除
docker container rm <containerId>
- 进入容器
```shell
// docker exec -it
psql -U
docker exec -it postgres psql -U postgres
// 或者
docker exec -it
4. 查看数据库
```shell
\l