首页
关于
壁纸
直播
留言
友链
统计
Search
1
《三国志英杰传》攻略
6,034 阅读
2
Emby客户端IOS破解
5,769 阅读
3
白嫖Emby
5,768 阅读
4
《吞食天地1》金手指代码
4,694 阅读
5
破解emby-server
4,040 阅读
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
登录
Search
标签搜索
ubuntu
mysql
openwrt
zerotier
springboot
centos
openvpn
jdk
吞食天地2
synology
spring
idea
windows11
吞食天地1
transmission
google-play
Japanese
xcode
群晖
kiftd
MoonjerX
累计撰写
370
篇文章
累计收到
459
条评论
首页
栏目
moonjerx
game
age-of-empires
zx3
san-guo-zhi
尼尔:机械纪元
net
emby
learn-video
docker
torrent
photoshop
route
minio
git
ffmpeg
im
vue
gitlab
typecho
svn
alipay
nasm
srs
mail-server
tailscale
kkfileview
aria2
webdav
synology
redis
oray
chemical
mxsite
math
π
x-ui
digital-currency
server
nginx
baota
k8s
http
cloud
linux
shell
database
vpn
esxi
rancher
domain
k3s
ewomail
os
android
windows
ios
app-store
macos
develop
java
javascript
uniapp
nodejs
hbuildx
maven
android-studio
jetbrain
jenkins
css
mybatis
php
python
hardware
hard-disk
pc
RAM
software
pt
calibre
notion
office
language
literature
philosophy
travel
页面
关于
壁纸
直播
留言
友链
统计
搜索到
45
篇与
docker
的结果
2021-08-26
win10修改docker镜像的存储位置
将win10更新至最新,目前最新版本是20H2,在安装docker desktop(基于wsl2)后,直接下载镜像默认是安装在C盘的,如果C盘空间不足,可按如下方式转移至其它盘docker启动后会自动运行下面两个镜像,docker-desktop是存放程序的,docker-desktop-data是存放镜像的,这两个wsl子系统都是默认放在系统盘的。PS C:\Users\Administrator> wsl -l -v --all NAME STATE VERSION * docker-desktop Running 2 docker-desktop-data Running 21、停止wslwsl --shutdown2、导出前面docker的两个镜像wsl --export docker-desktop-data D:\docker\docker-desktop-data.tar wsl --export docker-desktop D:\docker\docker-desktop.tar3、取消注册wsl --unregister docker-desktop-data wsl --unregister docker-desktop4、将导出的镜像导入到你要转移的目标位置// 用于存储镜像目录 D:\docker\image wsl --import docker-desktop-data D:\docker\image D:\docker\docker-desktop-data.tar // 运行docker主程序目录 D:\docker\bin wsl --import docker-desktop D:\docker\bin D:\docker\docker-desktop.tar5、确认是否转移成功PS C:\Users\Administrator> wsl -l -v --all NAME STATE VERSION * docker-desktop Stopped 2 docker-desktop-data Stopped 26、重新启动docker desktop
2021年08月26日
265 阅读
0 评论
0 点赞
2021-08-12
ssh服务未启动,22端口启用
这里使用的容器是centos7环境,基本是个比较纯净的环境,几乎什么都没装根据自己需求,先安装一些基本的(容器,默认是root用户)yum install -y net-tools接着安装openssl,openssh-serveryum install -y openssl openssh-server然后启动ssh/usr/sbin/sshd -D这里会报错[root@68e7598797d7 /]# /usr/sbin/sshd -D Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_ecdsa_key Could not load host key: /etc/ssh/ssh_host_ed25519_key需要进行下面的设置[root@68e7598797d7 /]# ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N '' [root@68e7598797d7 /]# ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' [root@68e7598797d7 /]# ssh-keygen -t dsa -f /etc/ssh/ssh_host_ed25519_key -N ''接着修改sshd_config文件配置信息,路径为 /etc/ssh/sshd_config1.将 Port 22 前面的注释去掉(开启22号端口)2.将 PermitRootLogin 的 no 改为 yes (这里是设置是否允许root用户登录,可根据自己需求决定是否开启)重新启动ssh[root@68e7598797d7 /]# /usr/sbin/sshd -D &注意,如果设置都没问题的话,命令结尾加个‘&’,自动后台运行,启动成功会返回进程号[root@68e7598797d7 /]# /usr/sbin/sshd -D & [1] 16给root添加密码添加过的可跳过此步骤[root@68e7598797d7 /]# yum install passwd [root@68e7598797d7 /]# passwd
2021年08月12日
165 阅读
0 评论
0 点赞
2021-08-12
linux修改系统中文字符集支持
[root@localhost ~]# docker run -it -d centos:7 [root@650da1307bb1 /]# echo $LANG [root@650da1307bb1 /]# locale # 查看当前系统所使用的字符集 LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= [root@650da1307bb1 /]# locale -a | grep CN # 默认没有中文 [root@650da1307bb1 /]# locale -a | grep zh [root@650da1307bb1 /]# locale -a C POSIX en_AG en_AG.utf8 en_AU en_AU.iso88591 en_AU.utf8 en_US en_US.iso88591 en_US.iso885915 en_US.utf8 [root@650da1307bb1 /]# yum install -y kde-l10n-Chinese # 需要执行命令进行安装 [root@650da1307bb1 /]# yum reinstall -y glibc-common [root@650da1307bb1 /]# yum groupinstall "fonts" -y [root@650da1307bb1 /]# yum install -y system-config-language [root@650da1307bb1 /]# localedef -c -f UTF-8 -i zh_CN zh_CN.UFT-8 # 定义字符集 [root@650da1307bb1 /]# localedef -c -f GBK -i zh_CN zh_CN.GBK [root@650da1307bb1 /]# localedef -c -f GB2312 -i zh_CN zh_CN.GB2312 [root@650da1307bb1 /]# locale -a C POSIX en_US.utf8 zh_CN.gb2312 zh_CN.gbk zh_CN.uft8 [root@650da1307bb1 /]# cat /etc/locale.conf LANG="en_US.UTF-8" [root@650da1307bb1 /]# echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf # 修改系统字符集 [root@650da1307bb1 /]# cat /etc/locale.conf LANG="zh_CN.UTF-8" [root@650da1307bb1 /]# source /etc/locale.conf [root@650da1307bb1 /]# echo 'export LC_ALL="zh_CN.utf8"' >> /etc/profile [root@650da1307bb1 /]# source /etc/profile [root@650da1307bb1 /]# locale LANG=zh_CN.UTF-8 LC_CTYPE="zh_CN.uft8" LC_NUMERIC="zh_CN.uft8" LC_TIME="zh_CN.uft8" LC_COLLATE="zh_CN.uft8" LC_MONETARY="zh_CN.uft8" LC_MESSAGES="zh_CN.uft8" LC_PAPER="zh_CN.uft8" LC_NAME="zh_CN.uft8" LC_ADDRESS="zh_CN.uft8" LC_TELEPHONE="zh_CN.uft8" LC_MEASUREMENT="zh_CN.uft8" LC_IDENTIFICATION="zh_CN.uft8" LC_ALL=zh_CN.uft8 #### 如果还出现乱码,执行以下命令 #### [root@650da1307bb1 fonts]# cd /usr/share/fonts/ [root@650da1307bb1 fonts]# fc-cache -fv #### 生成镜像 ########## docker commit -m 'test' e265924baa80 centos:7-utf8 ########### dockerfile ############################################## FROM centos:7 RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && yum -y install kde-l10n-Chinese \ && yum -y reinstall glibc-common \ && localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 \ && echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf \ && source /etc/locale.conf \ && yum clean all ENV LANG=zh_CN.UTF-8 \ LC_ALL=zh_CN.UTF-8
2021年08月12日
180 阅读
0 评论
0 点赞
2021-08-12
CentOS在登录时候显示cannot change locale (zh_CN.UTF-8): No such file or directory的解决办法
1.centos登录时报错-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8): No such file or directory -bash: warning: setlocale: LC_COLLATE: cannot change locale (zh_CN.UTF-8): No such file or directory -bash: warning: setlocale: LC_MESSAGES: cannot change locale (zh_CN.UTF-8): No such file or directory -bash: warning: setlocale: LC_NUMERIC: cannot change locale (zh_CN.UTF-8): No such file or directory -bash: warning: setlocale: LC_TIME: cannot change locale (zh_CN.UTF-8): No such file or directory2.修改locale中文字符集时重新加载环境变量报错解决方法:vi /etc/profile export LC_ALL=C
2021年08月12日
599 阅读
0 评论
0 点赞
2021-07-10
docker拉取镜像报错
环境虚拟机CentOS7安装好docker之后拉取emby镜像报错:[root@localhost ~]# docker pull yukinococo/emby_crack Using default tag: latest Error response from daemon: Head https://registry-1.docker.io/v2/yukinococo/emby_crack/manifests/latest: read tcp 112.118.3.11:55128->34.238.187.50:443: read: connection reset by peer [root@localhost ~]# vim /etc/resolv.conf解决方案:dig命令报错[root@localhost ~]# dig @114.114.114.114 registry-1.docker.io -bash: dig: command not found [root@localhost ~]# yum -y install bind-utils[root@localhost ~]# dig @114.114.114.114 registry-1.docker.io ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.5 <<>> @114.114.114.114 registry-1.docker.io ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50078 ;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;registry-1.docker.io. IN A ;; ANSWER SECTION: registry-1.docker.io. 33 IN A 35.169.249.115 registry-1.docker.io. 33 IN A 54.161.109.204 registry-1.docker.io. 33 IN A 3.224.96.239 registry-1.docker.io. 33 IN A 52.72.232.213 registry-1.docker.io. 33 IN A 52.55.168.20 registry-1.docker.io. 33 IN A 54.165.240.225 registry-1.docker.io. 33 IN A 34.197.211.151 registry-1.docker.io. 33 IN A 54.152.28.6 ;; Query time: 27 msec ;; SERVER: 114.114.114.114#53(114.114.114.114) ;; WHEN: Sat Jul 10 11:59:21 CST 2021 ;; MSG SIZE rcvd: 177 [root@localhost ~]# echo "54.165.240.225 registry-1.docker.io" >> /etc/hosts
2021年07月10日
161 阅读
0 评论
0 点赞
1
...
8
9
您的IP: