Commands

root terminal

docker exec -u root -it [container_name_or_id] /bin/bash

build image

Docker build -t my_app .

run

docker run -it -p 80:3000 my_app

compose

Docker compose up.

Updated: 2026 Aug 19