https://docs.docker.com/get-started/overview/#docker-architecture
https://docs.docker.com/engine/reference/commandline/rm/
docker exec -it [tab补全] sh
docker logs -f -t --since="2017-05-31" --tail=10 container
--since : 指定输出日志开始日期。
-f : 查看实时日志
-t : 查看日志产生的时间戳
-tail=10 : 查看最后的10条日志。
container : 容器名
把gitlab-runner加到docker用户组里。
usermod -aG docker gitlab-runner
sudo service docker restart
Build an image from a Dockerfile
--tag , -t Name and optionally a tag in the ‘name:tag’ format
Tag an image referenced by ID
To tag a local image with ID “0e5574283393” into the “fedora” repository with “version1.0”:
$ docker tag 0e5574283393 fedora/httpd:version1.0
Compose is a tool for defining and running multi-container Docker applications.
docker run -it --entrypoint=/bin/bash -v /Users/wanlerong/workspace/taptap-admin:/tmp/taptap-admin taptap-img-registry.cn-beijing.cr.aliyuncs.com/public/node-for-puppeteer:14-buster
https://stackoverflow.com/questions/52083380/in-docker-image-names-what-is-the-difference-between-alpine-jessie-stretch-an