[Seek Help] 如何修改成国内源?
Tofloor
poster avatar
dongfang123456
deepin
2023-08-18 20:41
Author

小弟碰到一个问题,恳请得到大神的解答!

sudo vim /etc/docker/daemon.json(输入后如图所示)

截图_20230818122924.png

111111111

222222222

截图_20230818123015.png

77777
截图_20230818123015.png
7777

截图_20230818123015.png
4444444

Reply Favorite View the author
All Replies
dongfang123456
deepin
2023-08-18 20:42
#1

中间的图片传不上,不知道怎么回事

Reply View the author
dongfang123456
deepin
2023-08-18 20:42
#2

中间的语言复制过去后,怎么才能关闭呢?快捷键关闭还是直接点击叉号关闭?

Reply View the author
dongfang123456
deepin
2023-08-18 20:56
#3

E325: 注意
发现交换文件 "/etc/docker/.daemon.json.swp"
所有者: root 日期: Wed Aug 16 22:34:00 2023
文件名: /etc/docker/daemon.json
修改过: 是
用户名: root 主机名: cyz-PC
进程 ID: 66489
正在打开文件 "/etc/docker/daemon.json"
CANNOT BE FOUND
(1) Another program may be editing the same file. If this is the case,
be careful not to end up with two different instances of the same
file when making changes. Quit, or continue with caution.
(2) An edit session for this file crashed.
如果是这样,请用 ":recover" 或 "vim -r /etc/docker/daemon.json"
恢复修改的内容 (请见 ":help recovery")。
如果你已经进行了恢复,请删除交换文件 "/etc/docker/.daemon.json.swp"
以避免再看到此消息。

交换文件 "/etc/docker/.daemon.json.swp" 已存在!
"/etc/docker/daemon.json" [新文件]
已中断: 请按 ENTER 或其它命令继续

Reply View the author
wlly-lzh
deepin
2023-08-18 20:57
#4
dongfang123456

中间的语言复制过去后,怎么才能关闭呢?快捷键关闭还是直接点击叉号关闭?

你指的是关闭vim吗?

Reply View the author
fax928
deepin
2023-08-18 20:57
#5

按esc,输入:wq再回车

Reply View the author
dongfang123456
deepin
2023-08-18 20:58
#6

有个直接编辑

截图_选择区域_20230818125815.png

Reply View the author
dongfang123456
deepin
2023-08-18 20:59
#7
wlly-lzh

你指的是关闭vim吗?

应该是。就是复制完东西,关闭出来的那个屏幕

Reply View the author
dongfang123456
deepin
2023-08-18 21:00
#8
fax928

按esc,输入:wq再回车

我的电脑好像完全没反应

Reply View the author
dongfang123456
deepin
2023-08-18 21:02
#9

改成这样了,按esc完全没反应
截图_选择区域_20230818130152.png

Reply View the author
dongfang123456
deepin
2023-08-18 21:04
#10

截图_20230818123015.png就是在这个页面,按esc没反应,也不知道去哪里输入wq

Reply View the author
dongfang123456
deepin
2023-08-18 21:07
#11

按右上的“叉号”就变成了这样了(为什么说我截屏上传的图片违规,我知道为什么我上传不了那些图片了)

截图_选择区域_20230818130645.png

Reply View the author
爱开发
deepin
2023-08-18 21:09
#12

按esc,再按 :wq

不懂vi的话,你可以输入

cat > /etc/docker/daemon.json

再粘贴内容(我一般是按 Shift + Insert)

再按 ctrl + C (还是Z,忘记了)

Reply View the author
wlly-lzh
deepin
2023-08-18 21:09
#13
dongfang123456

截图_20230818123015.png就是在这个页面,按esc没反应,也不知道去哪里输入wq

按esc键,然后依次输入: w q

:wq会显示在左下角。然后回车就保存并退出了。

Reply View the author
Barry-okx
Junior Packager
2023-08-18 23:42
#14

先linux入了门,再学docker。

上来就学docker 顺序反了。

Reply View the author
dongfang123456
deepin
2023-08-19 04:27
#15
Barry-okx

先linux入了门,再学docker。

上来就学docker 顺序反了。

受教

Reply View the author
阿白
deepin
2023-08-19 08:22
#16

百度一下 vim使用教程

花一点点时间学习一下就好了。

Reply View the author
阿白
deepin
2023-08-19 08:23
#17

不想学VIM就换一个命令把VIM换成其他你电脑里有的文本编辑器

Reply View the author
dongfang123456
deepin
2023-08-19 14:49
#18

我终于知道怎么回事了,需要按四个按键,分别是esc和:和w和q,我没有按:这个键,所以无法退出。这么简单的事情搞这么麻烦!确实需要学习,记住!

Reply View the author
dongfang123456
deepin
2023-08-19 14:49
#19

还是要学习,进入编辑都是一个问题

Reply View the author
阿尼樱奈奈
Moderator
2023-08-19 16:19
#20
dongfang123456

还是要学习,进入编辑都是一个问题

我之前和你一样不会退出vim,后来也是看别人的教程才学会的joy

Reply View the author