minhng92 / odoo-14-docker-compose

Set up Odoo 14 (released 2020) quickly for development/production using Docker Compose.
90 stars 99 forks source link

exposes 22 SSH on ODOO:14 #10

Open demonhunters1985 opened 2 years ago

demonhunters1985 commented 2 years ago

can I expose ssh services on odoo:14 image so can login I have a script that wants to run on it

minhng92 commented 2 years ago

Hi @demonhunters1985 ,

We do not need to expose ssh port, just use docker interaction mode with the following commands:

Check Odoo 14 container ID or name:
$ docker ps
> above command will list all running containers with CONTAINER ID and CONTAINER NAME

Execute interaction mode to connect into running container:
$ docker exec -it odoo14 bash
or
$ docker exec -it <CONTAINER ID> bash

Inside Odoo running container:
Execute your script inside container