I have three .sh files that I run in order to build and run docker images. As of yesterday, I can't seem to create any new ones that will work. It's weird because even if I copy the working ones exactly it still doesn't work.
I can run the lines inside the shell script in a terminal and they will work. I don't know how or why this is not working.
Edit: I can run the files, but they spit out something like
Error response from daemon: No such container: foo-container
which is not true since I can see the container with docker ps
Example:
This is an old script that works
#! /bin/bash
docker stop cb-server
docker rm cb-server
docker rmi couchbase.server.container
docker build -t couchbase.server.container .
But if I make a new one with the exact same code, and run it, I get this:
Error response from daemon: No such container: cb-server
Error response from daemon: No such container: cb-server
Error response from daemon: invalid reference format