Jonathan's Wiki 筆記
Jonathan's Wiki 筆記
  • Themes
    • Themes
    • Default
    • Bootswatch Themes
    • Cerulean
    • Cosmo
    • Cyborg
    • Darkly
    • Flatly
    • Journal
    • Lumen
    • Paper
    • Readable
    • Sandstone
    • Simplex
    • Solar
    • Slate
    • Spacelab
    • Superhero
    • United
    • Yeti
  • 登入

  1. 足跡
  2. Docker Container Auto Start

docker autostart k8s

側欄
  • 技術分享
  • 找我點這裡
  • 陪兒子玩數學

alpine(15) apache(7) backup(5) centos(15) centos7(7) devops(6) dns(5) docker(26) dokuwiki(12) draft(32) git(5) gitlab(8) gps(5) install(9) k8s(19) linux(29) logserver(7) lvm(6) mail(19) mantis(7) mp3(7) mysql(5) network(7) nfs(6) nginx(8) openssl(5) openvpn(11) perl(11) php(9) proxy(9) pve(22) rancher(8) samba(7) snmp(5) ssh(7) ssl(11) storage(5) subversion(17) svn(20) tips(20) ubuntu(7) vm(6) vpn(7) wordpress(5) 儲存(9) 安裝(26) 密技(37) 經驗(8) 虛擬化(7) 郵件(8)
  • 顯示原始碼
  • 舊版
  • 反向連結
  • Fold/unfold all
  • 回到頁頂

Docker Container Auto Start

  • Docker 1.2 開始支援
  • 建立 Container 時增加 –restart=always 參數, Example:
    docker run -i -t -d -p 8443:443 --restart=always turnkeylinux/phplist-13.0

參考網址

  • https://docs.docker.com/articles/host_integration/
docker, autostart, k8s
  • tech/docker/howto/autostart.txt
  • 上一次變更: 2021/01/16 10:01
  • 由 jonathan

cc by sa

若無特別註明,本 wiki 上的內容都是採用以下授權方式:
CC Attribution-Share Alike 4.0 International

  • Bootstrap template for DokuWiki
  • Powered by PHP
  • Valid HTML5
  • Valid CSS
  • Driven by DokuWiki