logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

CentOS──xxx is not in the sudoers file解决方法

前阵子比较来比较去,选了CentOS作Linux系统,刚装到虚拟机里面,发现默认的用户无法开启系统权限。终端中输入sudo后提示“XXX is not in the sudoers file. This incident will be reported.” 上网搜搜,找到了解决办法:用sudo时提示"xxx is not in the sudoers file. This incident wi

#centos
docker阿里云加速器

使用docker肯定遇到有些docker官方镜像拉不下来的情况,这时可以使用阿里云加速器,有意外惊喜的:)安装或升级Docker推荐您安装Docker Toolbox。 Toolbox的介绍和帮助: mirrors.aliyun.com/help/docker-toolbox Mac系统的安装文件目录: mirrors.aliyun.com/docker-toolbox/mac

#docker
docker镜像存放位置

docker镜像位置:For someone who is using Docker toolbox (that uses docker-machine), the answers concerning boot2docker on Mac OS X is not valid. The docker-machine VM is called "default" and it exist

#docker
docker制作镜像 apt-get 安装文件报错debconf: unable to initialize frontend: Dialog

错误信息debconf: unable to initialize frontend: Dialogdebconf: (TERM is not set, so the dialog frontend is not usable.)debconf: falling back to frontend: Readlinedebconf: unable to initialize frontend:

docker exec提示错误oci runtime error: exec failed: container_linux.go

sudo docker exec -it569f05d5f4fc /bin/bash提示错误rpc error: code = 13 desc = invalid header field value "oci runtime error:\ exec failed: container_linux.go:247:\ starting container proces...

Sublime Text格式化json插件Pretty JSON

Sublime Text格式化json插件Pretty JSONTo prettify JSON, make selection of json (or else it will try to use full view buffer) and press keys:Linux: ctrl+alt+jWindows: ctrl+alt+jOS X: cmd+ctrl+jor thr

Docker 重命名镜像 TAG

使用docker images时,可能会出现REPOSITORY 和TAG均为none的镜像,如下图重命名镜像docker tag IMAGEID(镜像id) REPOSITORY:TAG(仓库:标签)#例子docker tag ca1b6b825289 registry.cn-hangzhou.aliyuncs.com/xxxxxxx:v1.0

#docker
git提交本地代码到新分支

背景:从branchA分支拉了一份代码,做了一些修改,但是不想提交到branchA分支,想新建一个分支branchB保存代码。操作方法:添加本地需要提交代码git add .提交本地代码git commit -m "add my code to new branchB"push 到git仓库git push origin branchA:branchB仓库中原本没有branchB,提交后

#git
到底了