打开docker容器,启动redis镜像,报错:
Error invoking remote method 'docker-start-container': Error: (HTTP code 500) server error - Ports are not available: listen tcp 0.0.0.0:2181: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
解决方案:
windows+R键盘,输入cmd, 输入docker restart 镜像名称, 例如: docker restart redis
温馨提示:
重启windows前务必先关闭容器,不然都会导致这个问题出现。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)