Giter VIP home page Giter VIP logo

Comments (4)

bucha avatar bucha commented on September 28, 2024

Hi Colin,

I just made a quick test, but was unable to reproduce the problem.

First draft:

stack: cartware/test
services:
  nginx:
    image: nginx:latest

I installed the stack via kontena stack install.
Then I changed the stack and added a volume.

Second draft:

stack: cartware/test
services:
  nginx:
    image: nginx:latest
    volumes:
      - /root/html:/usr/share/nginx/html

I upgraded the stack via kontena stack upgrade test:

[done] Reading stack test from master
 [done] Parsing kontena.yml
 [done] Processing stack test
 [done] Analyzing upgrade

> Calculated changes:
  ~ test
    ~ test/nginx

 [done] Upgrading stack test
 [done] Triggering deployment of stack test
 [done] Waiting for deployment to start
 [done] Deploying service nginx

Thereafter I ssh'ed into the node and added some dummy text into /root/html/index.html.
While the first draft installation showed the nginx welcome page, the second draft showed my dummy text.

Did you follow the same scheme?

Cheers,
Alex

from kontena.

colinmollenhour avatar colinmollenhour commented on September 28, 2024

The only difference I see in what you and I did was my before already had a volume and so my after had two volumes. Also I am running 1.4.3.

from kontena.

bucha avatar bucha commented on September 28, 2024

Negative.
I added a second volume such this:

stack: cartware/test
services:
  nginx:
    image: nginx:latest
    volumes:
      - /root/html:/usr/share/nginx/html
      - /root/anotherfolder:/usr/share/nginx/html/test

And added some content to /root/anotherfolder/index.html

Opening /test via the browser or curl reveals my new content.

Did you try updating kontena?
kontena-cli 1.5.2 here.

from kontena.

colinmollenhour avatar colinmollenhour commented on September 28, 2024

Thanks, @bucha, I will update Kontena since I suppose the 1.4 branch is no longer maintained.

from kontena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.