lemonai icon indicating copy to clipboard operation
lemonai copied to clipboard

how to upgrade version

Open Sunlineroom opened this issue 1 year ago • 2 comments

my version is 0.4.0 but check update show it new's 0.4.1,i only use docker-compose to install in my linux , when i git clone it , always show me 0.4.0

Sunlineroom avatar Nov 10 '25 03:11 Sunlineroom

Hello!

Thank you for reporting this and for using our Docker setup. This is a very common scenario when using Docker images tagged with :latest.

The reason you are seeing version 0.4.0 while 0.4.1 exists is likely due to local Docker image caching. When you first ran docker-compose up, your system downloaded the hexdolemonai/lemon:latest image (which was 0.4.0 at the time) and cached it locally. Docker Compose will continue to use this local cache until you explicitly tell it to check for and pull a new version.

🛠️ How to Update to 0.4.1

To fix this, you need to use the docker-compose pull command to download the new image, and then force the container to recreate itself using that new image.

Please run these commands in the directory where your docker-compose.yml file is located:

  1. Pull the latest image:

    docker-compose pull lemon
    
  2. Recreate the container:

    docker-compose up -d --force-recreate lemon
    

💡 Regarding git clone

When you install via Docker Compose, your application runs from the pre-built Docker image, not directly from the source code you cloned.

  • git clone will give you the source code repository, which might be pointing to a specific branch or tag.
  • Using docker-compose pull is the correct way to update a Docker-based installation.

Please run the two docker-compose commands above, and your application should be running on version 0.4.1. Let us know if the issue persists!

HexdoAI avatar Nov 10 '25 08:11 HexdoAI

Dear developer,thanks for u replace, i try it real

Sunlineroom avatar Nov 11 '25 02:11 Sunlineroom