- 博客(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关注的人