'visibility of python output from bash

I've python code that includes tqdm code. the bash build docker image and container however I can't see any output from the container(in CLI).

#!/bin/sh
docker build . -t traffic
docker run -d --name traffic_con traffic
docker wait traffic_con
docker cp -a traffic_con:/usr/TrafficMannager/out/data/. ./out/data/
docker rm /traffic_con
docker rmi /traffic

I've tried to run the container on interactive mode (-it) however it's throwing an error

[EDIT:] Docker file:

FROM cityflowproject/cityflow

# Create a folder we'll work in 
WORKDIR /usr/TrafficMannager

# Upgrade installed packages
RUN apt-get update && apt-get upgrade -y && apt-get clean

# Install vim to open & edit code\text files
RUN apt-get install -y vim

# Install all python code depentences
RUN pip install gym && \
    pip install numpy && \
    pip install IPython && \
    pip install torch && \
    python -m pip install python-dotenv &&\
    pip install tqdm

COPY . .

CMD chmod u+x script/container_instructions.sh; ./script/container_instructions.sh

container_instructions:

#!/bin/sh
pip install lib/extern/CityFlow/.
python main.py


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source