Docker

Start Docker

Shadowsocks with docker (mritd/shadowsocks)

Modify Dockerfile and create new docker

Run this image

Docker Compose

Create Containers

Docker registry

Example

Issue

Error: could not get uid/gid

Sometime npm install in Docker will throw Error: could not get uid/gid error
solution: use npm i --unsafe-perm=true instead

Error

docker 在构建镜像的时候会尝试使用上次的缓存(intermediate container), 如果上次构建失败的情况下, 尝试清除缓存构建

© Jiyu Shao 2018 - 2025