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

service creation failing #2981

Closed ukreddy-erwin closed 4 years ago

ukreddy-erwin commented 4 years ago

cassandra db, able to create as a container but as a swarm service, it is failing.

I am creating service of swarm using this:

docker service create --name some-cassandra -d -p target=7000 -p target=9042 cassandra:latest

But, my service is getting failed for every few seconds

ubuntu@ip-172-31-25-90:~$ docker service ls

ID NAME MODE REPLICAS IMAGE PORTS 7t0nurasar5s some-cassandra replicated 0/1 cassandra:latest :30002->7000/tcp, :30003->9042/tcp

ubuntu@ip-172-31-25-90:~$ docker service ps 7t

ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS xo10xhi8khn9 some-cassandra.1 cassandra:latest ip-172-31-25-90 Ready Ready 4 seconds ago 68y0k1f2f90d some-cassandra.1 cassandra:latest ip-172-31-25-90 Shutdown Failed 4 seconds ago “task: non-zero exit (1)” x2o6bmix0x8e some-cassandra.1 cassandra:latest ip-172-31-25-90 Shutdown Failed 14 seconds ago “task: non-zero exit (1)” lr6v50lumdlo some-cassandra.1 cassandra:latest ip-172-31-25-90 Shutdown Failed 24 seconds ago “task: non-zero exit (1)” n0o38mkfack9 some-cassandra.1 cassandra:latest ip-172-31-25-90 Shutdown Failed 34 seconds ago “task: non-zero exit (1)”

When I checked the logs of the latest one.

ubuntu@ip-172-31-25-90:~$ docker service logs ut

pslog.txt

justincormack commented 4 years ago

This repo is not for Swarm please use https://github.com/docker/swarmkit