Skip to content
Advertisement

Tag: docker-container

ADD multiple Files to a docker but just RUN one of them

It’s just a theoretical question. Is there a way to run the docker but only run one specific script without changing the Dockerfile? Maybe with the docker run [container] command? Dockerfile: Theoretical Command: docker run docker-test main2.py Answer There is nothing “theoretical” about this. Docker copies into place the files, and if they are working executables, you can execute them

Advertisement