Start a container
Detach
To make the container running in background
bash
docker run -d vue-app
1
Then terminal won't enter the container.
Assign names for container
To assign names for new containers
bash
# name the container as c1
docker run -d --name c1 vue-app
1
2
2
Checking Logs
docker logs <container>
check all logsdocker logs -f <container>
follow log stream in terminaldocker logs -n <container>
check n tail lines of logsdocker logs -t <container>
check logs with timestamp
Start OR Run
docker start <container>
starts a existing container.docker run <container>
creates a new container and starts it.
Stop
docker stop <container>