docker-archive / classicswarm

Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
Apache License 2.0
5.75k stars 1.08k forks source link

Cannot deploy an image by its ID to a swarm #2937

Closed twhittakeriq closed 4 years ago

twhittakeriq commented 5 years ago

I created a docker-compose.yml file that references docker images by ID. When I try to deploy the compose file to a swarm, I get the error "No such image: 2e69080faee3:latest" repeatedly. The image does exist locally. In my scenario, it was loaded from a tar file that was provided to me by an upstream process.

Here is the docker-compose.yml:

version: '3.4'
services:
  registry:
    image: 2e69080faee3

This image does exist on the swarm only node attached to the swarm (the manager node in this case).

jony4 commented 5 years ago

the image 2e69080faee3 doesn't exist. docker pull image from docker hub, or any your private docker hub. so try this way:

version: '3.4' services: registry: image: redis

it will pull latest redis image from docker hub.

justincormack commented 4 years ago

This repo is not for Docker swarm you are looking for https://github.com/docker/swarmkit