docker
docker login --username=username ccr.ccs.tencentyun.com
docker tag [ImageId] ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号]
docker push ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号]
docker info
docker version
docker run -t -i -e QLOUND_COS_SECRET_ID=1 -e QLOUND_COS_SECRET_KEY=2 -v /User/shaowei/storage:/home --name container_name ccr.ccs.tencentyun.com/namespace/storage
docker run -t -i --env-file ./env.txt -v /Users/shaowei/billing/app:/app/app -p 80:80 --name billing ccr.ccs.tencentyun.com/namespace/billing
# 执行过后,会保存环境变量和映射信息
# container operate
docker container start accefbc14cb6
docker exec -it f5d01e8c44cd /bin/ash
docker container list -a
docker rm b546bfb47902
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
# image operate
docker rmi xxx
docker image list
docker rmi $(docker images -q)
# 复制文件
docker cp mycontainer:/opt/file.txt /opt/local/
docker cp /opt/local/file.txt mycontainer:/opt/
# 清除所有资源
docker system prune
docker container prune
docker image prune
docker image prune --force --all
docker container prune -f