Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image repository/tag not shown for images from stack deploy #1486

Closed
Duvel opened this issue Dec 10, 2017 · 8 comments
Closed

Image repository/tag not shown for images from stack deploy #1486

Duvel opened this issue Dec 10, 2017 · 8 comments

Comments

@Duvel
Copy link
Contributor

Duvel commented Dec 10, 2017

Description

If you deploy services with docker stack, the images don't get tags and the tag column in the list of images will be empty.

Steps to reproduce the issue:

  1. deploy a stack
  2. check tags for the images
  3. observe image tag is empty
@Duvel
Copy link
Contributor Author

Duvel commented Dec 10, 2017

Example stack file:

version: "3.2"
services:
  traefik:
    image: traefik:v1.4.2
    command: --web --docker.swarmmode --docker.domain=docker.localhost --logLevel=DEBUG --docker.watch
    ports:
      - "80:80"
      - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /dev/null:/traefik.toml
    networks:
      - traefik
    deploy:
      placement:
        constraints: [node.role == manager]

networks: 
  traefik:
    attachable: true

@Duvel
Copy link
Contributor Author

Duvel commented Dec 20, 2017

schermafbeelding 2017-12-20 om 16 12 55

@ulm0
Copy link

ulm0 commented Dec 20, 2017

This is related to Swarm itself, it uses the hash generated instead of the tag, so Swarm can identify the differences across images with same tag but built and pushed in different dates, this is a nice use-case when using :latest images

Duvel added a commit to Duvel/portainer that referenced this issue Dec 20, 2017
@deviantony
Copy link
Member

Sorry for the late update.

From what I can see in that specific use case, the output of the docker images command is the following:

traefik             <none>              2e7af90a3e22        6 weeks ago         45.6MB

Not sure that we want to display the tag traefik:<none> inside the images list as it's sort of a confusing tag...

Maybe just tag it as traefik ?

cc @ncresswell

@Duvel
Copy link
Contributor Author

Duvel commented Dec 21, 2017

Would be fine for me, I just need some identification in the images list to keep them apart.

@ibnesayeed
Copy link
Contributor

We can perhaps read the image name and tag from the stack file and tag the image accordingly. If there is an explicit tag then use that otherwise use latest (that would be the expected behavior).

@github-actions
Copy link

github-actions bot commented Jan 9, 2022

This issue has been marked as stale as it has not had recent activity, it will be closed if no further activity occurs in the next 7 days. If you believe that it has been incorrectly labelled as stale, leave a comment and the label will be removed.

@github-actions
Copy link

Since no further activity has appeared on this issue it will be closed. If you believe that it has been incorrectly closed, leave a comment mentioning portainer/support and one of our staff will then review the issue. Note - If it is an old bug report, make sure that it is reproduceable in the latest version of Portainer as it may have already been fixed.

xAt0mZ pushed a commit that referenced this issue Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants