GithubHelp home page GithubHelp logo

Comments (6)

hardillb avatar hardillb commented on June 18, 2024 1

You need to run docker pull nodered/node-red:latest to ensure that your local build environment has pulled the most up to date version.

If you don't do this then it will use what ever it has locally with the tag. Docker does NOT pull pre-req contianers when you build a Dockerfile

from node-red-docker.

knolleary avatar knolleary commented on June 18, 2024

Hi - can you make sure you've pulled the latest nodered/node-red? The logs show you've ended up with Node-RED 2.2 - but that hasn't been the :latest image for quite some time.

$ docker pull nodered/node-red
...
Digest: sha256:c9ab40bfd7957f17dbd5724e41160068df54530e9d1142d32104d5decb3e4371

$ docker run -it -p 1887 --name mynodered2 nodered/node-red
26 May 14:16:07 - [info]

Welcome to Node-RED
===================

26 May 14:16:07 - [info] Node-RED version: v3.0.2
26 May 14:16:07 - [info] Node.js  version: v16.20.0

from node-red-docker.

notexpected avatar notexpected commented on June 18, 2024

Thanks, this helps me notice what I missed in the docs about the suffix on the latest tag.

When I use nodered/node-red and build the config, I get the latest-18 tag

docker compose build node-red
[+] Building 20.8s (4/5)                                                                                                                  
 => [node-red internal] load build definition from Dockerfile                                                                        0.0s
 => => transferring dockerfile: 441B                                                                                                 0.0s
 => [node-red internal] load .dockerignore                                                                                           0.0s
 => => transferring context: 2B                                                                                                      0.0s
 => [node-red internal] load metadata for docker.io/nodered/node-red:latest-18  

If I change it back to nodered/node-red:latest and re-build the config, it still incorrectly tells me the "latest" tagged version is sha256:33334eab19f40e33dfc8a66bfae485fd8936af73dbe7da04dc21c33264f01f52 (digest 33334eab19f4), which is not the same[1] as the actual latest (sha256:84db99f5c4615f146062003f8d8e1aa308c4337b6df9d5fd4668895650c8c94e) on docker hub...

Seems like an issue in my docker instance as docker compose build did not seem to force it to find the new latest...

[1] I can't even find a corresponding package with that digest...so I am going to clear my caches... sorry for the noise

from node-red-docker.

knolleary avatar knolleary commented on June 18, 2024

No problem - I'll close this issue off

from node-red-docker.

Paraphraser avatar Paraphraser commented on June 18, 2024

I don't know if this will help but I use these aliases:

alias BUILD='docker-compose -f ~/IOTstack/docker-compose.yml up --build -d'
alias REBUILD='docker-compose -f ~/IOTstack/docker-compose.yml build --no-cache --pull'
alias UP='docker-compose -f ~/IOTstack/docker-compose.yml up -d'

substituting the path to your docker-compose.yml

If I want to rebuild a container (eg nodered) from the ground up and be sure the base image comes from Dockerhub:

$ REBUILD nodered
$ UP nodered

If I only need to rerun the local Dockerfile:

$ BUILD nodered

See also IOTstackAliases.

from node-red-docker.

notexpected avatar notexpected commented on June 18, 2024

Okay, so I figured out why I was really confused... I have been using watchtower for soooo long that I had forgotten the nuances of DockerFile. I had assumed it was updating everything (which it was except for the one thing that was in a Dockerfile)....

I ended up removing the Dockerfiler as it was not adding real value since I moved things into a compose file

from node-red-docker.

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.