自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 docker run 一次执行多条命令的方法

有时在启动docker container时需要同时运行不止一条命令,这时在command处使用:sh -c ' cmd1 && cmd2 '即可。如,docker run -it myimage sh -c 'service mysql start && python test.py'

2015-06-18 14:29:25 26612

原创 wget/curl命令行设置代理的方法

一、使用代理的方法:    1)wget         wget -Y on -e "https_proxy=192.168.1.1:9527" https://bootstrap.pypa.io/get-pip.py    2)curl         curl -x 192.168.1.1:9527 www.baidu.com         二、不使用代理的方法:

2015-06-18 14:13:31 1599

原创 docker “FATA[0162] ... connection timed out" 错误改正方法

在ubuntu14.04下面安装docker后,运行sudo docker run hello-world,提示下面的错误,Unable to find image 'hello-world:latest' locallyPulling repository hello-worldFATA[0162] Get https://index.docker.io/v1/repositorie

2015-06-12 09:31:47 4375

原创 git远程共享库push代码出错

今天在服务器端搭建完git远程共享库,在本地clone后,按照常规套路执行git add, git commit都没有问题,但执行git push origin master命令后,文件死活push不上去,出现了一大堆错误。remote: error: refusing to update checked out branch: refs/heads/masterremote: error

2015-06-02 13:22:27 751

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除