程序猿 - 使用阿里云加速器提升获取Docker官方镜像的速度

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

Vicw.com用户头像 - ErvinCheung ErvinCheung 480 0 0

宿主机已经运行mysql在3306端口,这个时候 映射容器中的 mysql '3306:3306' 就会和外部冲突,这个时候 映射 3308 到容器mysql的3306CONTAINER ID        IMAGE                    COMMAND    ...

Vicw.com用户头像 - ErvinCheung ErvinCheung 968 0 0

清除坏的<none>:<none>镜像docker rmi $(docker images -f "dangling=true" -q)

Vicw.com用户头像 - ErvinCheung ErvinCheung 533 0 1

To clear containers:docker rm -f $(docker ps -a -q)To clear images:docker rmi -f $(docker images -a -q)To clear volumes:docker volume rm $(docker volume ls -q)To clear networks:docker network rm $(docker network ls | tail -n+2 | awk '{if($2...

Vicw.com用户头像 - ErvinCheung ErvinCheung 373 0 0

WARNING: Error loading config file: /home/$USER/.docker/config.json: open /home/$USER/.docker/config.json: permission deniedTry this:sudo chown $USER:docker ~/.docker sudo chown $USER:docker ~/.docker/config.json sudo chmod g+rw ~/.docker/c...

Vicw.com用户头像 - ErvinCheung ErvinCheung 735 0 1