小编Mih*_*hai的帖子

mongodb 容器中的退出代码 14 错误,我正在使用带有卷路径的 mongodb 容器,然后收到退出代码 14 错误

version: "3"
services:
   mongo:
      image: mongo
      working_dir: /c/data/
      ports:
       - 27017:27017
      deploy:
        replicas: 1
      volumes:
        - /c/data/:/data/db
Run Code Online (Sandbox Code Playgroud)

我在上面的堆栈文件中尝试过,但我收到退出代码 14 错误,请给我有关错误的解决方案,

stack mongodb docker-compose docker-swarm

9
推荐指数
2
解决办法
5765
查看次数

我必须在“ git clone”之后运行“ git pull”吗?

我看到一些人在奔跑:

git clone <url>
git pull
Run Code Online (Sandbox Code Playgroud)

我个人只git clone <url>为所有项目工作而奔波。

我在文档中读到以下内容:

   After the clone, a plain git fetch without arguments will update all the remote-tracking branches, and a git pull without arguments will in addition merge the remote master branch into the current master branch, if any (this is untrue when "--single-branch" is given; see below).
Run Code Online (Sandbox Code Playgroud)

但这并没有真正给我一个理由。

我的问题是:git pull当我第二次克隆该项目时,附加值是什么?我应该始终运行git pull为好后git clone <url>

谢谢

git

1
推荐指数
1
解决办法
333
查看次数

标签 统计

docker-compose ×1

docker-swarm ×1

git ×1

mongodb ×1

stack ×1