Docker Community Forums

Share and learn in the Docker community.

Confused about the push command to docker DTR


(Ralph Kincade) #1

what is the exact command to push an image to a brand new DTR that I have set up my new DTR is “docker-cs0”

I know I am not tagging it right some how

“docker tag mysql <docker-cs0\mysql”

user@docker-cs1:~$ docker tag mysql docker-cs0\mysql
user@docker-cs1:~$ sudo docker push docker-cs0\mysql
FATA[0000] You cannot push a “root” repository. Please rename your repository to / (ex: /docker-cs0mysql)
user@docker-cs1:~$


(Sabin Basyal) #2

I think you mistakenly put the backslash where you had to put the forward slash ( or slash ).
So can you please do the following instead:
docker tag mysql docker-cs0/mysql
and docker push docker-cs0/mysql

Regards,
Sabin


(Ralph Kincade) #3

thanks this works but running into other issues

will post another question