I have dockerfile
CMD [ "/run/myfile.sh" ]
I build it
docker build . -t myRepo/test/my-app:1.0.0
and run it
docker run -it --rm myRepo/test/my-app:1.0.0 sh
If I want to change the CMD with more parameters How I can do it ? for example I want to create folder
command: ["/bin/sh"]
args: [ "-c", "mkdir -p /myfolder/sub && mkdir -p /myfolder2/sub2"]
I tried
docker run -it --rm myRepo/test/my-app:1.0.0 sh [ "-c", "mkdir -p /myfolder/sub && mkdir -p /myfolder2/sub2"]