전체 installation 과정은 아래의 사이트 참조함
https://gyunseo.com/devlog/wsl2%EC%97%90-docker-%EC%84%A4%EC%B9%98%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95/
sudo docker run hello-world
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
systemctl start docker
System has not been booted with systemd as init system (PID 1). Can't operate.
https://velog.io/@yuo3ob/System-has-not-been-booted-with-systemd-as-init-system-PID-1.-Cant-operate
sudo /etc/init.d/docker start
혹은
sudo service docker start
위의 방식으로 최종적인 문제 해결
sudo docker run hello-world 작동완료
docker-compose는 아래와 같은 명령어를 통해 설치함
sudo pip install docker-compose
Docker 의 개념과 Docker-compose가 무엇인지 정리해 보았다
컨테이너와 VM의 차이
machine 으로서 가져야 할 모든 요소들을 갖추고 있지는 않지만 application을 돌리기 위한 중요 요소들만 모아놓은 느낌
'이미지'라는 개념은 configuration과 대응한다.
Docker-compose 란?
Docker cmd 는 한번에 한 개의 container 혹은 image에 대해서만 작용하지만 docker-compose는 여러개의 container들에 대해 manage 가능하다
https://www.padok.fr/en/blog/do-you-have-all-it-takes-to-use-docker