Skip to content

aruntheja-4/medium-docker-keep-running

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

medium-docker-keep-running

Build

docker build -t keeprun .

Run

## Run normal
docker run -d --name myc keeprun

## Run with keep running
docker run -d --name myc keeprun tail -f /dev/null

### Alternatively inside Dockerfile
# ENTRYPOINT ["tail", "-f", "/dev/null"]

SSH into container

docker exec -it myc /bin/sh

Check logs

docker logs myc

Remove container

## Use "--force" so it don't has to be stopped before
docker rm myc --force

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%