SSH remote editing inside a container of server from vscode window of local PC

I am trying to connect my local PC to a remote server, where I need to edit inside a container already developed on the remote server’s docker.
I am using macOS as host and ubuntu as server. VScode has been installed on both PCs and the container was constructed on the ubutu server.
How can I connect the container from the vscode of the host macOS?
There might a need to manage a proxy.

Thank you in advance for your help:)

Source: StackOverflow