摘要: 在Docker容器的日常使用中,有以下5种常见的端口映射方式 对容器暴露的所有端口,随机映射宿主机端口 P , –publish all=true | false,默认为false docker run P it ubuntu /bin/bash 映射宿主机随机端口到容器指定端口 p contain 阅读全文
posted @ 2020-04-08 17:06 阿浪阿浪 阅读(866) 评论(0) 推荐(0) 编辑
摘要: 1.创建容器 docker create it boke oraclexe:1.0 创建临时容器,退出后不再存在,常用于排错 docker run it rm boke mysql5.5:1.1 bash 2.查看容器 docker ps a docker ps a q 查看哪些是停止状态的容器 3 阅读全文
posted @ 2020-04-08 16:56 阿浪阿浪 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1 搜素镜像 docker search [OPTIONS] TERM 参数说明: automated false 只列出自动构建的镜像 filter, f 根据指定条件过滤结果 limit 25 搜索结果的最大条数 no trunc false 不截断输出,显示完整的输出 stars, s 0 显 阅读全文
posted @ 2020-04-08 16:41 阿浪阿浪 阅读(165) 评论(0) 推荐(0) 编辑