Installing SSH on a Docker image

I’m trying to install SSH on a docker image using the command:


This seemingly installs SSH on the image, however if I tunnel into a running container and run the command manually I get prompted to set both Region and Timezone. Is it possible to pass these options to the install SSH command?
The container I am able to manually install SSH on can be started with the command below:

docker container run -it --rm -p 22:22 ubuntu:latest

My Docker Image is as follows:

FROM ubuntu:latest
RUN apt update
apt -y install ssh


Source: StackOverflow