Hi, How can I give a name for the images created i...
# ask-community
s
Hi, How can I give a name for the images created in docker by the dagster CLI ? every time I run a build command... a new image is created with "none" name and tag. I end up with a lot images that I need to delete
dagster bot responded by community 1
🤖 1
m
Assuming you're running
docker build .
in a directory with a Dockerfile, you can use the
-t
flag to add tags to the image e.g.
docker build -t my-image:latest .
If you're using
docker compose build
, then you can use the
image
flag for this purpose Example from one of my docker compose files:
Copy code
version: '3.9'
services:
  dagsterdev:
    build:
      context: .
      dockerfile: Dockerfile
      target: dev
    image: dagster-poc-dev # This bit!
d
Hi saul -which CLI command are you referring to?
s
@daniel nervermind.... I did what matt suggested and is not happening anymore
🙌 1