Step 0 Answer: docker version
Step 1 Answer: docker search tutorial
Step 2 Answer: docker pull learn/tutorial
Step 3 Answer: docker run learn/tutorial echo "hello world"
Step 4 Answer: docker run learn/tutorial apt-get install -y ping
Step 5 Answer:
docker ps -l
docker commit (old image id) repository learn/ping
Step 6 Answer: docker run learn/ping ping www.google.com
Step 7 Answer:
docker ps
docker inspect (image id)
Step 8 Answer:
docker image
docker push learn/ping
No comments:
Post a Comment