![](https://img-blog.csdnimg.cn/20210426160725521.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
docker
有关docker教程
桃子小迷妹
一只后悔读博的小菜鸟!
展开
-
docker 账号注册及服务器登录
Docker 账号注册打开网站dockerhub在注册界面填入信息Docker IDEmailPassword信息填入后,进行人机验证并点击 Sign Up服务器登录docker账号docker login输入:UsernamePassword原创 2021-06-28 23:13:45 · 1418 阅读 · 0 评论 -
bash: vim: command not found
问题描述当使用命令vim <txt> 修改文件时,出现错误:bash: vim: command not found错误原因: 未安装 vim解决方法:安装 vimsudo apt install vim原创 2021-04-23 18:14:11 · 149 阅读 · 0 评论 -
python 切换系统默认版本
目前系统默认python版本是2.7需要切换成 python 3.8确认 python 3.8 是否安装,使用命令:python3.8如未安装,使用命令,sudo apt-get install python3.8查看所有可用的python版本信息(注意:root身份 )update-alternatives --list python 报错:update-alternatives: error: no alternatives for python错误原因:Pyt原创 2021-04-23 17:10:27 · 2712 阅读 · 1 评论 -
ubuntu :bash: unzip: command not found
环境:docker ubuntu 20.04问题描述解压文件夹时,使用命令 unzip <Folder>出现错误:bash: unzip: command not found错误原因:没有安装 unzip解决方法sudo apt-get install unzip验证安装安装成功原创 2021-04-22 19:10:21 · 1149 阅读 · 0 评论 -
docker 向挂载文件夹上传文件 permission denied
问题描述:向docker挂载文件夹上传文件时,出现错误 permission denied原因分析:这个文件夹是我在创建docker 容器时,由docker创建的,所以它的访问权限就变成了root解决方法:在docker内,使用命令:chmod +777 文件夹或者:先创建文件夹,再创建docker...原创 2021-04-22 18:15:16 · 702 阅读 · 0 评论 -
docker sudo apt-get install python (ubuntu 20)
环境: docker(ubuntu20)问题描述:使用命令 python出现错误:bash: python: command not found错误原因:未安装``解决方法:安装 pythonsudo apt-get install python //默认版本或sudo apt-get install python3.8 //指定版本3.8验证安装:python 安装成功...原创 2021-04-22 18:03:37 · 432 阅读 · 0 评论 -
bash: lsb_release: command not found
当使用命令: lsb_release -a,出现错误 bash: lsb_release: command not found解决方法: sudo apt-get install lsb-core -y但是:使用 sudo 时,出现错误:bash: sudo: command not found解决方法:教程之后,使用: sudo apt-get install lsb-core -y...原创 2021-04-22 11:07:11 · 1439 阅读 · 0 评论 -
docker 使用sudo命令,报错 bash: sudo: command not found
当在docker内(ubuntu 20.04)内使用 sudo apt-get install XX出现错误 :bash: sudo: command not found解决方法:apt-get updateapt-get install sudo原创 2021-04-22 10:55:54 · 2574 阅读 · 1 评论 -
docker 删除容器
查看容器IDdocker ps -a删除容器docker rm <CONTAINER ID>原创 2021-04-22 10:30:08 · 129 阅读 · 0 评论 -
docker 查看当前容器状态
docker ps -a原创 2021-03-23 16:42:14 · 2006 阅读 · 0 评论 -
docker 退出容器
容器内部退出并关闭容器exit容器外关闭容器docker stop <XXX>原创 2021-03-23 16:16:05 · 497 阅读 · 0 评论 -
docker 重新启动已经停止的容器
docker:当需要使用容器时,使用start和attach命令1. start启动容器docker start XXXStart one or more stopped containers2. attach连接到正在运行中的容器docker attach XXXAttach local standard input, output, and error streams to a running container...原创 2021-03-23 10:41:33 · 2107 阅读 · 1 评论 -
docker 目录
~#: root文件夹/#: 根目录下原创 2021-03-22 17:50:17 · 538 阅读 · 0 评论