📜  docker compose 命令 bash 权限被拒绝 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:11.691000             🧑  作者: Mango

代码示例1
sudo chmod 755 ./docker-scripts/*
sudo chmod 755 ./docker-scripts/update-container.sh

# Dockerfile
RUN chmod 755 ./docker-scripts/*
RUN chmod 755 ./docker-scripts/update-container.sh

# docker-compose.yml
command: sh ./docker-scripts/update-container.sh