ps.feature 707 B

1234567891011121314151617181920212223242526272829
  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. And I run "docker rm -f external-test"
  19. Scenario: external container from compose image exists
  20. When I run "compose build"
  21. Then the exit code is 0
  22. And I run "docker run --name external-test test:latest ls"
  23. Then the exit code is 0
  24. And I run "compose ps -a"
  25. Then the output does not contain "external-test"
  26. And I run "docker rm -f external-test"