Reason: As you are trying for the first time, then there is no docker container to remove.
If you are trying to remove using:
sudo docker rm -f $(sudo docker ps -a -q)
which will throw you the above error.
Solution: To resolve this query first run the build without rm command then from the second execution you can use the above command for removing the container and building when there is a push to git hub.
For more information, check out this Docker tutorial.