根据镜像images创建并运行容器:#YYY新创建容器名称 XXXX镜像名称
sudo docker run --name YYY -it XXX:latest /bin/bash
根据已经有的容器创建新的容器#
sudo docker commit -a "message" -m "create compile" ID XXXX
--------------------------------------------------------------------------------------------------------
git使用:
1.Clone到本地
git clone <url>
2.修改测试验证
3.提交
git commit --message="modify main.c show this is string"
git log
git diff
git diff HEAD
4.上传服务器
git push
---------------------------------------------------------------------------------------------------------
查看本地分支
git branch
查看所有分支
git branch -a
创建分支
git branch test
切换到新创建的分支
git checkout test
将新创建的分支上传到远端
git push origin test:test
查看当前修改状态
git status
配置commit时的用户
git config user.name XXXXX
git config user.email XXX@XXX.com
提交修改到本地仓库
git commit -m "message"
将修改上传至远端仓库
git pull origin test:test
----------------------------------------------------------------------------------------------------------
sudo docker run --name YYY -it XXX:latest /bin/bash
根据已经有的容器创建新的容器#
sudo docker commit -a "message" -m "create compile" ID XXXX
--------------------------------------------------------------------------------------------------------
git使用:
1.Clone到本地
git clone <url>
2.修改测试验证
3.提交
git commit --message="modify main.c show this is string"
git log
git diff
git diff HEAD
4.上传服务器
git push
---------------------------------------------------------------------------------------------------------
查看本地分支
git branch
查看所有分支
git branch -a
创建分支
git branch test
切换到新创建的分支
git checkout test
将新创建的分支上传到远端
git push origin test:test
查看当前修改状态
git status
配置commit时的用户
git config user.name XXXXX
git config user.email XXX@XXX.com
提交修改到本地仓库
git commit -m "message"
将修改上传至远端仓库
git pull origin test:test
----------------------------------------------------------------------------------------------------------
挂载目录:
mount -t cifs -o username=XXX,password=XXX //IP/version/mnt/version