方法一:docker commit 1. 跑一个basic image,docker新建了一个容器 root@ubuntu:/home/thm/docker/test# docker run -i -t tanghuimin0713/ubuntu_amd64:14.04 /bin/bash WARNING: Local (127.0.0.1) DNS resolver found in resolv.conf and containers can't use it. Using default
1.任意新建文件夹,右击git bash here $ git init(将此目录变成本地仓库) 2.$ git remote add origin 'https://git............git'(选择你要拉取项目的网址) 从这拉取网址 报错:remote: The project you were looking for could not be found. fatal: repository not found 原因:是因为git保存了旧的git账号和密码,导致验证失败. 解决:
1.下载git客户端 2.在osc上创建项目 ①使用:git bash here ②在目录下执行:git init ③ssh-keygen -t rsa -C "xqs@gmail.com"这里替换成自己的用户名(就是你的osc账号) ④Enter file in which to save the key (/Users/diaosi/.ssh/id_rsa):xinqin(输入自己要保存的名字)接下来还要输入密码自己设置随意. ⑤打开/Users/diaosi/.ssh/会看到生成