随笔分类 -  docker

docker note
摘要:`docker run itd name test p 6379:6379 v /tmp/dump.rdb:/data/dump.rdb redis:4.0.8 requirepass 'password'` 阅读全文
posted @ 2018-06-05 16:18 随便了888 阅读(2985) 评论(0) 推荐(0)
摘要:资源 一、创建数据库 1. 克隆项目到服务器下 2. 启动数据库 ` docker run itd name xxl mysql p 3306:3306 e MYSQL_ROOT_PASSWORD=123456 mysql:5.6.40 ` 3. 复制sql至mysql容器 ` docker cp 阅读全文
posted @ 2018-05-25 12:45 随便了888 阅读(11360) 评论(0) 推荐(1)
摘要:index1.html 同理建立index2.html,内容为222222 nginx.conf 启动镜像 浏览器访问192.168.43.130,持续刷新即可看到1111111,22222222内容交替显示 阅读全文
posted @ 2018-04-18 12:59 随便了888 阅读(212) 评论(0) 推荐(0)
摘要:此方法可能仅对于我的问题有效 我在VMware虚拟机启动docker container nginx的,一开始启动nginx的contatiner,在浏览器是可以正常访问的,但次日重新访问时就报502了,找了好多方法都不行,后来问了同事说,虚拟机挂起后再进来要先重启docker服务才行,试了下就行了 阅读全文
posted @ 2018-04-17 13:06 随便了888 阅读(1809) 评论(0) 推荐(0)
摘要:"docker compose nginx example" "source code" "docker compose nginx balancing" 阅读全文
posted @ 2018-04-16 14:47 随便了888 阅读(447) 评论(0) 推荐(0)
摘要:` sudo rm /usr/bin/docker compose` curl L https://github.com/docker/compose/releases/download/1.20.0/docker compose `uname m` o /usr/bin/docker compos 阅读全文
posted @ 2018-04-16 13:49 随便了888 阅读(2343) 评论(0) 推荐(0)
摘要:dockerfile note "reference" summary 1. defination docker can build images automatically by reading the instructions from a dockerfile. dockerfile is a 阅读全文
posted @ 2018-04-08 16:51 随便了888 阅读(160) 评论(0) 推荐(0)
摘要:add it `docker run it name test d nginx:latest /bin/bash` 阅读全文
posted @ 2018-04-04 18:00 随便了888 阅读(5571) 评论(0) 推荐(0)
摘要:"docker common command" remove no tag images "docker on runoob" "difference between image and container" "dockerfile tutorial" docker inspect view con 阅读全文
posted @ 2018-04-04 17:12 随便了888 阅读(128) 评论(0) 推荐(0)
摘要:may need login vpn first "docker ce for ubuntu" chinese version "docker ce for ubuntu" 阅读全文
posted @ 2018-04-03 17:40 随便了888 阅读(127) 评论(0) 推荐(0)
摘要:centos docker community version install: yum -y install docker # install dockersystemctl start docker.service # start docker servicesystemctl enable d 阅读全文
posted @ 2017-12-04 17:33 随便了888 阅读(211) 评论(0) 推荐(0)