Check if the docker image is named only 'ubuntu' and tag 14.04
JIRA: FUEL-245
Change-Id: I4dc58a295925cc64a1d5c52393e1c172d42f8a6e
Signed-off-by: Anders Roxell <anders.roxell@enea.com>
docker rmi opnfv.org/ubuntu-builder:14.04 &>/dev/null || exit 0
docker rmi opnfv.org/ubuntu-builder:latest &>/dev/null || exit 0
docker rmi ubuntu:14.04 &>/dev/null || exit 0
- @if docker images | grep -q "ubuntu *14.04"; then \
+ @if docker images | grep -q "^ubuntu *14.04"; then \
echo "Error: ubuntu:14.04 still present!"; \
exit 1; \
fi