ps.feature 621 B

123456789101112131415161718192021222324252627
  1. Feature: PS
  2. Background:
  3. Given a compose file
  4. """
  5. services:
  6. build:
  7. image: test:latest
  8. build:
  9. context: ./
  10. pull:
  11. image: alpine
  12. command: top
  13. """
  14. And a dockerfile
  15. """
  16. FROM golang:1.19-alpine
  17. """
  18. Scenario: external container from compose image exists
  19. When I run "compose build"
  20. Then the exit code is 0
  21. And I run "docker run --name external-test test:latest ls"
  22. Then the exit code is 0
  23. And I run "compose ps -a"
  24. Then the output does not contain "external-test"