Black Lives Matter. Please consider donating to Black Girls Code today.

R and ggplotly in docker

I am running R in a docker container under CentOS 6. I have no problems generating static ggplot images in a separate window but would now like to be able to use ggplotly for dynamic images, ie not exporting them as static images.

First, is this possible when running in a docker container?

Second, what do I need to install in my container besides R? I should add that I always generate my own Dockerfiles so I understand what is going on and have full control.

Third, what would the run docker command be to be able to visualize this dynamic image and click on it etc.?

Thank you. I have googled but not found a minimum example that I can learn from.