docker update --restart=always showdoc
标签归档:docker
docker endpoint for “default” not found
docker endpoint for “default” not found
Error invoking remote method ‘desktop-go-backend’: Error: {“message”:”retrieving settings: loading settings: parsing JSON: EOF”}
解决办法:
For Windows Users
- Delete
.docker
directory. Which exists on PATHC:\Users\your-username\.docker
- Restart docker.
Thanks man, it’s works to me!
Error: unknown flag: –restart
docker初探小记
# 启动个nginx
docker run --detach --publish 80:80 --name webserver nginx
# 停止nginx
docker container stop webserver
# 删除容器
docker container rm webserver
–detach等于-d 后后台运行的意思
可参考链接:
http://www.runoob.com/docker/docker-command-manual.html
CentOS 7安装docker:
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-ce-cli containerd.io
docker vmware 冲突和 切换
切换到VMware workstation
bcdedit /set hypervisorlaunchtype off
# 需要重启
切换到docker
bcdedit /set hypervisorlaunchtype auto
# 需要重启