Create a bash script

Job ID: 35757786

Budget: $10 – $30 USD

I need a bash script that runs in Ubuntu Linux which:
1. Checks that docker-compose is a certain version.
Print error messge and exit if version is not high enough;
2. Call a function to load all docker images in a directory like so:
load-images()
{
for filename in *.tar; do
echo
sudo docker load -i $filename
done
}

3. Runs sudo docker-compose up -d
Print the containers that its started.
4. Runs sudo docker-compose logs contianer_name:
Print the output of this command
5. Runs sudo docker exec container2_name python3 my_python_script.py
Print the output of this command
Related categories: Linux Software Architecture Ubuntu Bash Scripting