$ docker create | stop | ps | rm
docker swarm machine operator command:
$ docker-machine create | stop | rm | ls
docker swarm operator command on machine:
$ docker swarm init | join-token | leave | join
docket network operator command on machine:
$ docket network ls | create | inspect | rm
single docker with docker-compose.yml or docker-compose.yaml:
$ docker-compose create | rm | start | stop | up
docker swarm with compose file:
$ docker stack deploy | ps | rm | services
docket swarm container service operator command in manager role of swarm machine:
$ docker service ls | create | rm | logs
docker list swarm node in manager role of swarm machine:
$ docker node ls
show consul run statist.(consul is service name)
$ docker service ps consul
$ docker exec -it $(docker ps | grep "pkrss-microsrv-consul" | awk {'print $1'}) ping consul-default
$ docker network inspect ingress
delete consul service:
$ docker service rm $(docker service ls | grep consul | awk '{print $1}')
create service on worker machine:
$ docker service create --name foo6 --constraint="node.role == worker" --network foo alpine sleep 999999
Last