Microsoft Windows [Version 10.0.19044.2486] (c) Microsoft Corporation. All rights reserved. C:\Users\【user】>docker run --name repo alpine/git clone https://github.com/docker/g etting-started.git Unable to find image 'alpine/git:latest' locally [+] Building 48.7s (27/27) FINISHED => [internal] load build definition from Dockerfile 0.0s d build definition from Dockerfile => => transferring dockerfile: 1.22kB 0.0s g dockerfile: 1.22kB => [internal] load .dockerignore 0.0s d .dockerignore => => transferring context: 67B 0.0s g context: 67B => [internal] load metadata for docker.io/library/nginx:alpine 8.5s d metadata for docker.io/library/nginx:alpin => [internal] load metadata for docker.io/library/python:alpine 7.9s in directory: /root/.cache/pip/wheels/55/66/ => [internal] load metadata for docker.io/library/node:18-alpine 8.9s 3a975bb27c892b309ee34b15bd0 => [app-base 1/5] FROM docker.io/library/node:18-alpine@sha256:bc329c73 12.0s in directory: /root/.cache/pip/wheels/e4/64/ => => resolve docker.io/library/node:18-alpine@sha256:bc329c7332cffc30c2 0.0s 2fe1906f8c800bcfa611ea50df6 => => sha256:708a2a13738817369695a9df7520e6dfd9b4ce25033 6.44kB / 6.44kB 0.0s yarn test => => sha256:8921db27df2831fa6eaa85321205a2470c669b855f3 3.37MB / 3.37MB 7.4s lly built mkdocs-minify-plugin htmlmin jsmin => => sha256:a227f84207dab2781adc14259cef7c7593db2589 47.36MB / 47.36MB 10.3s g collected packages: jsmin, htmlmin, zipp, => => sha256:3f754d9a0294685231e85f621ab57098ed501ae9b49 2.35MB / 2.35MB 2.9s ments, packaging, mergedeep, MarkupSafe, Mar => => sha256:bc329c7332cffc30c2d4801e38df03cbfa8dcbae2a7 1.43kB / 1.43kB 0.0s A new release of pip available: 22.3.1 -> 23 => => sha256:f8f6e351b184217e007918f27f821cb005a12826452 1.16kB / 1.16kB 0.0s To update, run: pip install --upgrade pip => => sha256:982901c2dfd794846797e386a7cf8fe7578fd03414fb26a 450B / 450B 3.6s yarn test => => extracting sha256:8921db27df2831fa6eaa85321205a2470c669b855f3ec95 32.2s or 1/4] COPY --from=test /app/package.json / => => extracting sha256:a227f84207dab2781adc14259cef7c7593db2589968d35eb 1.3s - Building documentation to directory: /app => => extracting sha256:3f754d9a0294685231e85f621ab57098ed501ae9b499218a 0.1s - The following pages exist in the docs dir => => extracting sha256:982901c2dfd794846797e386a7cf8fe7578fd03414fb26ae 0.0s ed in the "nav" configuration: => [base 1/4] FROM docker.io/library/python:alpine@sha256:d8b0703ce84fe 13.9s COPY --from=app-zip-creator /app.zip /usr/sh => => resolve docker.io/library/python:alpine@sha256:d8b0703ce84fe5a52d4 0.0s => => sha256:d8b0703ce84fe5a52d485f212e9d852bcdb86067980 1.65kB / 1.65kB 0.0s => => sha256:9f955672f82a7e7138bcb64bb8352fb0a3025533b8b 1.37kB / 1.37kB 0.0s => => sha256:ffc28cbd185e4529833fa4caff224a4a5a19d3fb700 7.33kB / 7.33kB 0.0s => => sha256:8921db27df2831fa6eaa85321205a2470c669b855f3 3.37MB / 3.37MB 7.4s => => sha256:3fd9832a787c7d68019488dcae52ce17e79f7c 622.91kB / 622.91kB 10.9s => => sha256:8ad817329ee66aa12f5ca6b2139c9edaf0fbc54d 12.45MB / 12.45MB 13.3s => => extracting sha256:3fd9832a787c7d68019488dcae52ce17e79f7cc4217fb549 0.1s => => sha256:4f8213827918dff73c0b6909f0144eb07054a48aa02ac2 230B / 230B 11.4s => => sha256:c78c56ce6ced6e56fecac47985172286d5b39d2870 3.06MB / 3.06MB 13.3s => => extracting sha256:8ad817329ee66aa12f5ca6b2139c9edaf0fbc54d04d4c787 0.3s => => extracting sha256:4f8213827918dff73c0b6909f0144eb07054a48aa02ac235 0.0s => => extracting sha256:c78c56ce6ced6e56fecac47985172286d5b39d287045b3d7 0.1s => [internal] load build context 0.1s => => transferring context: 12.80MB 0.1s => [stage-6 1/3] FROM docker.io/library/nginx:alpine@sha256:659610aadb3 12.4s => => resolve docker.io/library/nginx:alpine@sha256:659610aadb34b7967dea 0.0s => => sha256:c433c51bbd66153269da1c592105c9c19bf353e9d 16.35kB / 16.35kB 0.0s => => sha256:8921db27df2831fa6eaa85321205a2470c669b855f3 3.37MB / 3.37MB 7.4s => => sha256:659610aadb34b7967dea7686926fdcf08d588a71c51 1.65kB / 1.65kB 0.0s => => sha256:c1b9fe3c0c015486cf1e4a0ecabe78d05864475e279 1.78kB / 1.78kB 0.0s => => sha256:83e90619bc2e4993eafde3a1f5caf5172010f30ba87 1.80MB / 1.80MB 6.1s => => sha256:d52adec6f48bc3fe2c544a2003a277d91d194b4589bb88d 624B / 624B 6.7s => => sha256:10eb2ce358fad29dd5edb0d9faa50ff455c915138fdba94 957B / 957B 7.5s => => extracting sha256:8921db27df2831fa6eaa85321205a2470c669b855f3ec95d 0.1s => => sha256:a1be370d6a525bc0ae6cf9840a642705ae1b163baad1664 772B / 772B 8.8s => => extracting sha256:83e90619bc2e4993eafde3a1f5caf5172010f30ba87bbc5a 0.1s => => sha256:689b9959905b6f507f527ce377d7c742a553d2cda8d 1.40kB / 1.40kB 8.6s => [stage-6 3/3] COPY --from=build /app/site /usr/share/nginx/html 0.0s => exporting to image 0.1s => => exporting layers 0.0s => => writing image sha256:036aefd278c5d336318e7557315a156fa130143d3ba2a 0.0s => => naming to docker.io/library/docker101tutorial 0.0s Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how t o fix them C:\Users\【user】\getting-started>docker run -d -p 80:80 --name docker-tutorial docker101tutori al 5470cd5b0ad9edb5414b3dd6d6526b13a6d99e5d78ef129e2fd7f7018a489a64 C:\Users\【user】\getting-started>docker ls docker: 'ls' is not a docker command. See 'docker --help' C:\Users\【user】\getting-started>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5470cd5b0ad9 docker101tutorial "/docker-entrypoint.…" 24 seconds ago Up 23 seconds 0.0.0.0:80->80/tcp docker-tutorial C:\Users\【user】\getting-started>docker --help Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "C:\\Users\\【user】\\.docker") -c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use") -D, --debug Enable debug mode -H, --host list Daemon socket(s) to connect to -l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") --tls Use TLS; implied by --tlsverify --tlscacert string Trust certs signed only by this CA (default "C:\\Users\\【user】\\.docker\\ca.pem") --tlscert string Path to TLS certificate file (default "C:\\Users\\【user】\\.docker\\cert.pem") --tlskey string Path to TLS key file (default "C:\\Users\\【user】\\.docker\\key.pem") --tlsverify Use TLS and verify the remote -v, --version Print version information and quit Management Commands: builder Manage builds buildx* Docker Buildx (Docker Inc., v0.10.0) compose* Docker Compose (Docker Inc., v2.15.1) config Manage Docker configs container Manage containers context Manage contexts dev* Docker Dev Environments (Docker Inc., v0.0.5) extension* Manages Docker extensions (Docker Inc., v0.2.17) image Manage images manifest Manage Docker image manifests and manifest lists network Manage networks node Manage Swarm nodes plugin Manage plugins sbom* View the packaged-based Software Bill Of Materials (SBOM) for an image (Anch ore Inc., 0.6.0) scan* Docker Scan (Docker Inc., v0.23.0) secret Manage Docker secrets service Manage services stack Manage Docker stacks swarm Manage Swarm system Manage Docker trust Manage trust on Docker images volume Manage volumes Commands: attach Attach local standard input, output, and error streams to a running containe r build Build an image from a Dockerfile commit Create a new image from a container's changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes to files or directories on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on Docker objects kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container pause Pause all processes within one or more containers port List port mappings or a specific mapping for the container ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or more running containers tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers version Show the Docker version information wait Block until one or more containers stop, then print their exit codes Run 'docker COMMAND --help' for more information on a command. To get more help with docker, check out our guides at https://docs.docker.com/go/guides/ C:\Users\【user】\getting-started>docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker101tutorial latest 036aefd278c5 3 minutes ago 47MB alpine/git latest 22d84a66cda4 2 months ago 43.6MB C:\Users\【user】\getting-started>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5470cd5b0ad9 docker101tutorial "/docker-entrypoint.…" 55 seconds ago Up 54 seconds 0.0.0.0:80->80/tcp docker-tutorial C:\Users\【user】\getting-started>
标签:kB,--,0.0,docker,sha256,turorial,Docker From: https://www.cnblogs.com/panpanwelcome/p/17096358.html