I think best would be checking return code of `docker inspect $oldid`