容器
ZHANGJNWEI
这个作者很懒,什么都没留下…
展开
-
docker数据卷操作总结
docker RUN命令使用-v选项指定volumes卷,实现数据数据卷:容器使用的特殊目录,实现容器之间共享和重用;对数据卷的修改会立马生效;对数据卷的更新不会影响到镜像;卷会一直存在,直到没有容器使用;卷是在容器内部创建还是在容器所在主机上创建?可不可以使用相对路径?命令: RUN -v [local_directory]:/some/volume:[permission] -v /webapp/data -v /src/local:/webpp/data 挂载本地...原创 2020-09-08 20:25:46 · 202 阅读 · 0 评论 -
docker使用中问题总结
1、启动docker-compose up, 返回Couldn't connect to Docker daemon at http+docker://localhost - is it running?原因:dockerd使用sudo启动,使用sudo docker-compose up启动。原创 2020-09-01 18:18:53 · 113 阅读 · 0 评论 -
配置docker网络
In thisblog we’ll talk about network considerations when using Docker with an Elasticsearch cluster.There are different ways to setup networking in Docker and by default threenetwork types are presented. We can list all of them using the following com...原创 2020-09-01 18:08:19 · 120 阅读 · 0 评论 -
使mysql容器进行应用开发
docker pull mysql/mysql-server:8.0docker run --name=mysql1 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql/mysql-server:8.0docker exec -it mysql1 mysql -uroot -p配置远程连接: create user 'oathtest'@'%' identified by 'pasdword'; grant all on oath...原创 2020-09-01 13:28:23 · 77 阅读 · 0 评论