摘要:
容器启动时候用host模式即共享网络模式和宿主机使用同一个网络 #使用宿主机的ip和端口,但是容器的系统,进程列表等还是和主机隔离。 #docker run -tid --net=host --name docker_host1 ubuntu-base:v3 #docker run -tid --n 阅读全文
posted @ 2022-07-05 16:06
白玉神驹
阅读(549)
评论(0)
推荐(0)
摘要:
docker常用命令 查看debian版本 cat /etc/apt/sources.list 去清华大学开源软件镜像站找到对应版本 bullseye 将系统自带该文件备份 cp /etc/apt/sources.list /etc/apt/sources.list.backup 安装https源 阅读全文
posted @ 2022-07-05 12:59
白玉神驹
阅读(382)
评论(0)
推荐(0)
摘要:
更新apt-get apt-get update apt-get upgrade 安装 apt-get install vim 阅读全文
posted @ 2022-07-05 11:15
白玉神驹
阅读(114)
评论(0)
推荐(0)
摘要:
进入mariadb容器 docker exec -it mariadb bash 登陆数据mariadb mariadb -u root -p 设置全局时间 set global time_zone = '+8:00';#修改mysql全局时区为北京时间,即我们所在的东8区 set time_zon 阅读全文
posted @ 2022-07-05 09:40
白玉神驹
阅读(182)
评论(0)
推荐(0)

浙公网安备 33010602011771号