How to get docker-compose to always re-create containers from fresh images?

后端 未结 7 2117
误落风尘
误落风尘 2020-11-29 15:13

My docker images are built on a Jenkins CI server and are pushed to our private Docker Registry. My goal is to provision environments with docker-compose which always start

7条回答
  •  时光说笑
    2020-11-29 15:52

    I claimed 3.5gb space in ubuntu AWS through this.

    clean docker

    docker stop $(docker ps -qa) && docker system prune -af --volumes

    build again

    docker build .

    docker-compose build

    docker-compose up

提交回复
热议问题