官术网_书友最值得收藏!

Refreshing Docker commands

We've looked at some of the important Docker commands:

  • docker build: Builds an image
  • docker run: Runs an image
  • docker exec: Executes a command in a running container
  • docker ps: Shows the currently running containers
  • docker images: Displays the existing images

While these are the basic ones, knowing most of the available Docker commands is very useful for debugging problems and to perform operations such as monitoring, copying and tagging images, creating networks, and so on. These commands will also show you a lot about how Docker works internally.

An important command: be sure to clean up old containers and images with  docker system prune from time to time. Docker is quite space-intensive after working with it for a few weeks.

The Docker documentation (https://docs.docker.com/v17.12/engine/reference/commandline/docker/) is quite complete. Be sure to know your way around it.

主站蜘蛛池模板: 丘北县| 东城区| 宜良县| 岢岚县| 丹巴县| 汝州市| 句容市| 青海省| 乐业县| 黔东| 寻甸| 金门县| 巴青县| 涿鹿县| 济宁市| 岫岩| 文登市| 曲松县| 阜平县| 泰州市| 嵊州市| 涟源市| 祁连县| 彰化县| 赣榆县| 宁夏| 惠安县| 合山市| 社旗县| 涟源市| 浦城县| 上饶县| 深水埗区| 宁安市| 旬邑县| 年辖:市辖区| 兰坪| 贵德县| 宜君县| 砀山县| 关岭|