I created my own image from python app:
import calendar
print('Welcome to calendar')
year = int(input('Enter year'))
month = int(input('Enter number of month'))
print(calendar.month(year,month))
print('Good bye')
Docker file:
FROM python:alpine
WORKDIR /app
COPY . .
CMD [ "python","main.py" ]
After running comand docker run -it my-calendar (it's name of my image) i get back ID of my container, but it is not running. I dont know why.
I tried to do the same thing on Docker Desktop from Windows (with the same files python and Dockerfile) and it works correctly. I think it is problem in my ubuntu on virtual box. Can you help me?