05 2019 档案
摘要:端口映射可使用-p、-P来实现: -p指定要映射的端口,一个指定端口上只可以绑定一个容器 -P将容器内部开放的网络端口随机映射到宿主机的一个端口上 端口映射支持的格式: ip:hostport:containerport #指定ip、指定宿主机port、指定容器port ip::containerp
阅读全文
摘要:$ sudo docker run -d centos:last 8022826ebd567e2b1818e90ce33c3b68ea9aeac0286001154eb05fc2283e0238$ sudo docker exec -it 8022826ebd56 bash出现: Error response from daemon: Container 8022826ebd567e2b181...
阅读全文
摘要:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 解决: systemctl enable docker systemctl daemon-reload
阅读全文
摘要:1. 查看Docker版本 $ docker version 它用于查看Docker的客户端和服务器版本。 2. 从Docker文件构建Docker映像 $ docker build -t image-name docker-file-location -t:它用于指定使用提供的名称来标记Docke
阅读全文
摘要:下载源码包 --安装所需要的系统软件包 yum groupinstall -y "Development tools" yum install -y bison flex readline-devel zlib-devel 官网下载:https://www.postgresql.org/ftp/so
阅读全文