Docker desktop tutorial
1 docker login 失败1.1 Q1: Error saving credentials: error storing credentials - err: exec: “docker-credential-desktop.exe”: executable file not found in $PATH, out: vim /root/.docker/config.json “credsStore”: “desktop.exe”,~/.docker/config.json change credsStore to credStore 相当于不适用加密存储 “credsStore”: “secretservice” 相当于使用 docker-credential-secretservice与这个命令效果相同:ln -s /usr/bin/docker-credential-secretservice /usr/bin/docker-credential-desktop.exe A:未验证sudo ln -s /mnt/c/Program\...
Docker端口映射失败
1 查看端口占用netstat -aon|findstr “被占用端口号”taskkill /pid 该程序PID -t -f 2 查看被占用的端口范围netsh interface ipv4 show excludedportrange protocol=tcp 3 解决办法:Hyper-V的动态端口保留(默认保留端口范围:5000-65535) 12345678# 1. 临时禁用Hyper-V(需重启)dism.exe /Online /Disable-Feature:Microsoft-Hyper-V# 2. 重启后保留目标端口netsh int ipv4 add excludedportrange protocol=tcp startport=8000 numberofports=1# 3. 重新启用Hyper-V(需重启)dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All 4 参考删除30000-40000的TCP端口保留范围 12netsh int ipv4 delete...
Docker desktop tutorial
方法1:直接修改daemon.json 12345vim /etc/docker/daemon.json{ "storage-driver": "overlay2", "data-root": "/mnt/f/OS/docker"} 方法2:修改启动文件 123sudo vim /etc/systemd/system/multi-user.target.wants/docker.service#将ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock修改以下内容:ExecStart=/usr/bin/dockerd --graph=/home/data/docker --storage-driver=overlay2 sudo systemctl daemon-reloadsudo systemctl restart dockersudo systemctl status docker
wsl root用户下docker 无法启动
1 wsl root用户下docker 无法启动今天是周六,早上起床折腾了一下,开了个管理员的WSL终端,进入root用户运行,突然不行了,然后重启docker,无果,最后再折腾了一下,居然又可以了。 现在总结一下 先关闭原来的管理员WSL界面,重新开启一个 首先需要进入管理员的WSL,然后直接进入root用户,直接在root用户启动docker,就可以了 https://blog.csdn.net/weixin_42971644/article/details/99870601 wsl需要启动systemctl ,就是让systemd以pid=1运行 2020-05-17还有可能是防火墙iptables问题 CHAIN_ADD failed (No such file or directory): chain PREROUTINGcentos8 运行nftables。需要启用iptables-legacy
Docker 故障处理
1 Docker 故障处理1.1 问题描述安装完docker 后,执行docker version相关命令,出现:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 1.2 原因摘自docker mannual上的一段话:Manage Docker as a non-root userThe docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The docker daemon always runs as the root user.If you don’t want to use sudo when you use the docker command, create...
perl + eclips
安装eclips1. 安装Java环境jre or jdk http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. 解压Eclipsehttp://www.eclipse.org/http://www.eclipse.org/babel/ Language package解压至根目录tar -zxvf eclipse.tar.gz –C /eclipse 解压即可,无需安装 3. 安装EPIC(Perl IDE, plug-in for Eclipse)EPIC http://www.epic-ide.org/download.php Help->Install New Software..-> Work with:http://e-p-i-c.sf.net/updates -> next -finish 或 解压至根目录 4. Windows 需要Perl解释器Linux...
perl + eclips
安装eclips1. 安装Java环境jre or jdk http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. 解压Eclipsehttp://www.eclipse.org/http://www.eclipse.org/babel/ Language package解压至根目录tar -zxvf eclipse.tar.gz –C /eclipse 解压即可,无需安装 3. 安装EPIC(Perl IDE, plug-in for Eclipse)EPIC http://www.epic-ide.org/download.php Help->Install New Software..-> Work with:http://e-p-i-c.sf.net/updates -> next -finish 或 解压至根目录 4. Windows 需要Perl解释器Linux...
perl + eclips
安装eclips1. 安装Java环境jre or jdk http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. 解压Eclipsehttp://www.eclipse.org/http://www.eclipse.org/babel/ Language package解压至根目录tar -zxvf eclipse.tar.gz –C /eclipse 解压即可,无需安装 3. 安装EPIC(Perl IDE, plug-in for Eclipse)EPIC http://www.epic-ide.org/download.php Help->Install New Software..-> Work with:http://e-p-i-c.sf.net/updates -> next -finish 或 解压至根目录 4. Windows 需要Perl解释器Linux...
SecureCRT、Xshell上传下载
SecureCRT和Xshell都是常用的终端仿真工具,能够帮助用户通过SSH协议连接远程服务器,方便地进行Linux系统的管理。两者均支持多种协议来简化文件的上传与下载,其中Zmodem协议在SecureCRT和Xshell中都有良好的支持。 在使用Zmodem进行文件传输时,用户需要确保在Linux系统中安装相应的软件包,否则SecureCRT将无法正常进行上传或下载操作。在CentOS和Debian系统中,这个软件包的名称为“lrzsz”。接下来将详细介绍如何安装和使用该软件。 安装lrzszCentOS: 1[root@www ~]# yum install lrzsz debian: 1[root@www ~]#apt-get install lrzsz 使用在命令行界面直接拖入文件
SecureCRT、Xshell上传下载
SecureCRT和Xshell都是常用的终端仿真工具,能够帮助用户通过SSH协议连接远程服务器,方便地进行Linux系统的管理。两者均支持多种协议来简化文件的上传与下载,其中Zmodem协议在SecureCRT和Xshell中都有良好的支持。 在使用Zmodem进行文件传输时,用户需要确保在Linux系统中安装相应的软件包,否则SecureCRT将无法正常进行上传或下载操作。在CentOS和Debian系统中,这个软件包的名称为“lrzsz”。接下来将详细介绍如何安装和使用该软件。 安装lrzszCentOS: 1[root@www ~]# yum install lrzsz debian: 1[root@www ~]#apt-get install lrzsz 使用在命令行界面直接拖入文件









