$ docker run hello-world
docker: open /mnt/sda1/var/lib/docker/tmp/GetImageBlob815775153: input/output error.
구글로 검색해 보고, 알려준대로 재부팅도 해보고 저 경로로 이동도 해보았는데, 저 경로는 리눅스 우분투 경로라 Quick-start로 실행해보니 다른 에러가 떴다.
Error getting IP address: ssh command error:
command : ip addr show
err : exit status 255
output :
docker is configured to use the default machine with IP
For help getting started, check out the docs at https://docs.docker.com
검색해보니, docker toolbox를 설치하면 기본적으로 virtualbox에 default라는 이름의 가상머신이 생기는데
거기서 생긴 오류이다.
그래서 이 가상머신을 삭제하고 새로 생성한 후 테스트
$ docker-machine stop default
$ docker-machine rm default
$ docker-machine create --driver virtualbox default
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
2db29710123e: Pull complete
Digest: sha256:37a0b92b08d4919615c3ee023f7ddb068d12b8387475d64c622ac30f45c29c51
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
성공적으로 설치가 되었다!