/usr/bin/python3print("hello world")进入映像(docker run -it --entrypointbash myimage)的,然后运行:bash-4.4# /opt/test.py结果:bash-4.4# /opt/test.py停靠程序运行:docker run myima
就像在docker中,我们可以通过一个交互式shell进入一个容器。docker-compose exec containername /bin/bash 类似于gitlab CI/CD中的script,我们也可以进入它。就像它提供了一个交互式的shell 例如: build: script: HERE I W