Docker


Reading time: less than 1 minute

Docker is a software system for creating and running containers.

Prune old docker files

docker system prune -a

Build and run a Dockerfile

docker run -it \
    -p 70:70 \
    -d \
    $(docker build -q .)

Container OS / CoreOS randomly kills my containers

You can prevent this by writing SystemD service files that restarts your containers when they die. In this scenario, SystemD acts as a watchdog. You can also observe the container states and logs via SystemD if you do this.

The following pages link here

Citation

If you find this work useful, please cite it as:
@article{yaltirakli,
  title   = "Docker",
  author  = "Yaltirakli, Gokberk",
  journal = "gkbrk.com",
  year    = "2024",
  url     = "https://www.gkbrk.com/docker"
}
Not using BibTeX? Click here for more citation styles.
IEEE Citation
Gokberk Yaltirakli, "Docker", November, 2024. [Online]. Available: https://www.gkbrk.com/docker. [Accessed Nov. 12, 2024].
APA Style
Yaltirakli, G. (2024, November 12). Docker. https://www.gkbrk.com/docker
Bluebook Style
Gokberk Yaltirakli, Docker, GKBRK.COM (Nov. 12, 2024), https://www.gkbrk.com/docker

Comments

© 2024 Gokberk Yaltirakli