container-image

docker ps - show image ID instead of name

这一生的挚爱 提交于 2019-12-10 17:56:18
问题 I display running containers using docker ps command. There is an IMAGE column that shows name of the image that each container was created from. However in the meantime (while containers were running) I have rebuilt some images. The new images have the same names but different ID s. Now I'd like to check from which image specific container was run. I cannot deduce this information using only image name . I need image ID . Is there any possibility to display ID of the image that was used to

What are the docker-compose settings that should be removed for production?

前提是你 提交于 2019-12-07 08:30:31
问题 I am trying to create a separate docker-compose for production, currently I only have one compose file which I use for local development, but to make one for production, I don't know what attributes to remove aside volumes and ports my current dev compose file looks like this: version: '3' services: db: container_name: mariadb build: context: ./mariadb volumes: - ./mariadb/scripts:/docker-entrypoint-initdb.d - ./.data/db:/var/lib/mysql - ./logs/mariadb:/var/log/mysql environment: MYSQL_ROOT