gpt4 book ai didi

docker-compose - docker-compose yml文件中的working_dir标签是什么意思

转载 作者:行者123 更新时间:2023-12-03 11:58:43 25 4
gpt4 key购买 nike

只是想知道 working_dir 文件对通过 docker-compose 加载的图像真正做了什么。示例 docker-compose.yml 文件如下:

dev:
extends:
file: common.yml
service: workspace
volumes:
- $ATOMSPACE_SOURCE_DIR:/atomspace
- $COGUTILS_SOURCE_DIR:/cogutils
# Uncomment the following lines if you want to work on moses
# - $MOSES_SOURCE_DIR:/moses
working_dir: /opencog # This is the same as the volume mount point below
links:
- postgres:db
- relex:relex

postgres:
image: opencog/postgres
# Uncomment the following lines if you want to work on a production
# system.
# NOTE: The environment variable `PROD` is set `True` then the entrypoint
# script in opencog/postgres does additional configurations.
# environment:
# - PROD=True

relex:
image: opencog/relex
command: /bin/sh -c "./opencog-server.sh"

最佳答案

working_dir设置创建的容器的工作目录。与 --workdir 相同标记为 docker run .

关于docker-compose - docker-compose yml文件中的working_dir标签是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40341952/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com