C:\Windows\system32>bash #一番大切!Windows10で管理者としてコマンドを開く
sudo apt show -a
sudo apt remove
sudo apt -y install
sudo cgroupfs-mount
sudo service docker start
sudo service docker status
sudo docker run hello-world
 Hello from Docker!
 This message shows that your installation appears to be working correctly.
sudo docker run -p 8080:80 -d nginx:latest
 Unable to find image 'nginx:latest' locally
 latest: Pulling from library/nginx
 6ae821421a7d: Pull complete
 58702d4af197: Pull complete
 b165f42e8fd4: Pull complete
 Digest: sha256:18c0755594af107923baa2e65fcef35aea4ab0cea7862d19c27aa127bacb458e
 Status: Downloaded newer image for nginx:latest
sudo docker ps
 CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                  NAMES
 9839a49dbe97        nginx:latest        "nginx -g 'daemon of…"   2 minutes ago       Up About a minute>80/tcp   loving_carson
sudo docker ps -a -q
sudo docker container prune
sudo docker rm $(docker ps -a -q)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.