I need CentOS+OpenSSH enabled image.
I have tried with steps mentioned there. Its giving error during pulling image.
[root@centos6 ~]# docker run -d -P -t --name centos7-1 centos7-ssh
Unable to find image ‘centos7-ssh:latest’ locally
Pulling repository centos7-ssh
Error: image library/centos7-ssh:latest not found
Docker log says,
INFO POST /v1.19/containers/create?name=centos7-1
ERRO Handler for POST /containers/create returned error: No such image: centos7-ssh (tag: latest)
ERRO HTTP Error err=No such image: centos7-ssh (tag: latest) statusCode=404
INFO POST /v1.19/images/create?fromImage=centos7-ssh&tag=latest
ERRO Error from V2 registry: Authentication is required.
docker build -t centos7-ssh . ?
I am just trying to run CentOS system with SSH in my Docker environment. Do I need to execute build command also.
you mean you are trying to build an Image that is CentOS that has an openSSH on it? in that case, you have to build the image from the dockerfile which is written on the guide https://bitbucket.org/cwt/docker-centos7-ssh/overview
Sorry for confusion. I want to create system with CentOS+SSH using docker.