Docker Community Forums

Share and learn in the Docker community.

Inside docker containter want to run shell script in ubuntu?

I have file shell script .sh on ubuntu /home and I have docker container app in docker and I want my app access run file shell script outside docker that it in ubuntu /home
Please help me

Hello chanraphan,

If can restart your container, you just have to mount you shell script inside the container and login into the container after it starts. Then, you will be able to manipulate the file inside the container.

Or you can copy the file inside the container using docker copy. And execute the script inside the container.

Best Regards,
Fouscou