随笔分类 - docker
2021-02-21
摘要:1、用docker-compose拉起三个容器:nginx->ghost博客平台->mysql,拉起后可以直接访问ghost博客平台 2、目录结构: ghost: data docker-compose.yml nginx: config.js Dockerfile ghost: nginx.con
阅读全文
摘要:compose:独立于docker的程序,可以做多容器app 安装docker-compose: 下载docker-compose文件: curl -L https://github.com/docker/compose/releases/download/1.9.0/docker-compose-
阅读全文
摘要:存放docker镜像(mage)的地址,可供人上传下载镜像包: 下载 docker search whalesay --搜索whalesay镜像,该镜像用命令行的形式画了个鲸鱼并说了句话 docker pull docker/whalesay --拉取镜像名为docker/whalesay的镜像 d
阅读全文
摘要:独立于docker容器的持久化存储: 法(1):自动将服务器文件夹挂载到容器内部文件夹/usr/share/nginx/html,这样只修改服务器文件夹下的内容即可对应修改容器内部文件夹的内容 将服务器某文件夹挂载到容器内部 /usr/share/nginx/html 下: docker run -
阅读全文
摘要:文件名必须名为Dockerfile,用touch命令新建Dockerfile文件(执行touch Dockerfile),Dockerfile内容: from ubuntu --基础镜像名字 maintainer afei1759 --作者 run sed -i 's/archive.ubuntu.
阅读全文
摘要:docker与虚拟机VM的区别 docker基础命令 安装decker:wget -qO- https://get.docker.com | sh 启动docker:service docker start 重启动docker:service docker restart 停止docker: ser
阅读全文

浙公网安备 33010602011771号