手记

docker的相关使用步骤以及命令

Welcome to this view

now begin:

part:zero:

         Dockerfile

         docker build

part:one:

         docker pull [options] name[:tag]

         docker images [options] [repository[:tag]]

part:two:

         docker run [options] name[:tag] [command]

         eg:docker run -d -p 7706:3306 -e MYSQL_ROOT_PASSWORD=123456 -e MYSQL_DATABASE=jpress              hub.c.163.com/library/mysql

part:three:

         docker exec -it name/ID bash

part:four:

         docker ps

         docker stop id

         docker restart id

Thank you for your looking!

5人推荐
随时随地看视频
慕课网APP