P1【Udemy付费课程】 Docker and Kubernetes: The

docker run helllo-world
016 Overriding Default Commands P12 - 02:18
// override
docker run busybox ls
// error
docker run hello-world ls
017 Listing Running Containers P13 - 00:24
docker ps
docker run busybox ping google.com
docker ps --all
018 Container Lifecycle P14 - 03:05
docker create hello-world
// -a: print the output information
// without '-a': cannot see anything
docker start -a 'CONTAINER ID'
019 Restarting Stopped Containers P15 - 01:41
// stop a container
docker start -A 'CONTAINER ID'
020 Removing Stopped Containers P16 - 00:32
docker system prune
021 Retrieving Log Outputs P17 - 01:56
docker logs 'CONTAINER ID'
022 Stopping Containers P18 - 03:45
// stop a Container
// SIGTERM
docker stop 'CONTAINER ID'
// SIGKILL
docker kill 'CONTAINER ID'
docker run redis
docker ps
// exec: execute
// -it: input
// -it: -i -t
docker exec -it 'CONTAINER ID' redis-cli
// STDIN: standard input
docker exec -i 'CONTAINER ID' redis-cli
// -t: tabulation, format the results
// use docker container shell
docker exec -it 'CONTAINER ID' sh
// quit
Ctrl + D
exit
docker run -it busybox sh
// container 1
touch hithere
ls
// container 2
touch hello
ls
031 Building a Dockerfile P26 - 01:09
mkdir redis-image
031 Building a Dockerfile P26 - 02:33
// create 'Dockerfile'
FROM alpine RUN apk add --update redis CMD ["redis-server"]
docker build .
docker run 'CONTAINER ID'
036 Rebuilds with Cache P31 - 01:48
docker build .
037 Tagging an Image P32 - 00:24
docker run 'CONTAINER ID'
037 Tagging an Image P32 - 02:33
docker build -t stephengrider/redis:latest .
docker run stephengrider/redis
039 Manual Image Generation with Docker Commit P33 - 02:01
docker run -it alpine sh
docker commit -c 'CMD ["redis-server"]' 'CONTAINER ID'
docker run 'CONTAINER ID'
047 Container Port Mapping P40 - 00:43
mkdir simpleweb
062 Development Workflow P55 - 00:57

192 Mapping Existing Knowledge P146 - 00:03
minikube status
kubectl cluster-info