Docker deployment script issues

  docker, question

This is my script for automatically deploying docker

docker stop timesguide-service \
 && docker rm timesguide-service \
 && cd /app/timesguide-service \
 && docker build -t timesguide-service . \
 && docker run -e TZ="Asia/Shanghai" -d timesguide-service

There is no problem on the compiled mirror machine

But on the new machine, there will be:
Error response from daemon: No such container:

Can’t proceed with the next operation, should I change the script?

&&is the meaning of union, which requires the correct execution of the previous instructions. since there is no container, an error will be reported during execution.
So put the first two&&Change to;Number or line feed.

docker stop timesguide-service \
 ;  docker rm timesguide-service \
 ;  cd /app/timesguide-service \
 && docker build -t timesguide-service . \
 && docker run -e TZ="Asia/Shanghai" -d timesguide-service