I am trying to run the following command within a script and keep getting the following error
docker: invalid reference format.
I also tried running the cmd without quotes around the env variable names and also without $ and { , same result.
sudo docker run --name "${container_name}-${number}" --cpus="${cpus_per_container}" \
--cpuset-cpus="${cpu_1}","${cpu_2}" \
--restart always -e VIRTUAL_HOST="${virtual_host}" \
-e NODE_ENV="${environment}" -d "${container_registry}:${tag_name}"
Anything that should be changed in the above?