随笔分类 -  Docker

摘要:DockerHub docker commit -a "zxc" -m "mytest" 22924b70665e test:18.04 将容器 22924b70665e 保存为新的镜像,并添加提交人信息和说明信息 docker tag test:19.04 thomashub/test:18.04 阅读全文
posted @ 2023-03-21 17:38 thomas_blog 阅读(35) 评论(0) 推荐(0) 编辑
摘要:linux环境运行arm docker镜像 docker run -it arm64v8/ubuntu:v2 /bin/sh exec /bin/sh: exec format error docker run --rm --privileged multiarch/qemu-user-static 阅读全文
posted @ 2022-12-22 13:43 thomas_blog 阅读(2277) 评论(0) 推荐(0) 编辑
摘要:查看wsl默认配置 wsl -l 适用于 Linux 的 Windows 子系统分发版: docker-desktop-data (默认) docker-desktop Ubuntu-20.04 docker-desktop:安装的docker for windows Ubuntu-20.04:手动 阅读全文
posted @ 2022-12-07 12:23 thomas_blog 阅读(357) 评论(0) 推荐(0) 编辑
摘要:apt install openssh-server vim /etc/ssh/sshd_config Port 22 PermitRootLogin yes #root登录 /etc/init.d/ssh start 出现错误 # service ssh start * Starting Open 阅读全文
posted @ 2022-12-06 13:53 thomas_blog 阅读(20) 评论(0) 推荐(0) 编辑
摘要:通常,用在本地容器需要挂载一个远程目录的时候来使用 安装 vieux/sshfs 插件 docker plugin install --grant-all-permissions vieux/sshfs 使用镜像加速,我是没有下载成功。关闭了就可以了 通过 vieux/sshfs 驱动创建数据卷 d 阅读全文
posted @ 2022-12-05 18:55 thomas_blog 阅读(706) 评论(0) 推荐(0) 编辑
摘要:官方hub https://hub.docker.com/ 拉取镜像 docker pull ubuntu 可以指定版本 docker pull ubuntu:18.04 可以考虑使用镜像加速 运行容器 docker run -it ubuntu /bin/bash -i: 交互式操作 -t: 终端 阅读全文
posted @ 2022-12-05 18:40 thomas_blog 阅读(67) 评论(0) 推荐(0) 编辑
摘要:教程 https://www.runoob.com/docker/docker-tutorial.html 主题 以下讲解windows11安装 官网下载 https://www.docker.com 常规下一步 安装完成 安装报错 根据提示下载wsl2更新 https://learn.micros 阅读全文
posted @ 2022-12-05 17:38 thomas_blog 阅读(31) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示