I'm new to docker and I'm using a compose file to build from a Dockerfile and run and image for me I have the following yml file
version: '2'
services:
multichain:
build: ./
image: ubuntu:15.04
read_only: false
volumes:
- .:/data:rw
working_dir: /data
#entrypoint: node server/index.js
docker-compose up --build
produces
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 5c5580fb6ce4 2 minutes ago 175.1 MB
ubuntu 15.04 d1b55fd07600 10 months ago 131.3 MB
Which is expected but can I replace the "" with something during the build in docker-compose?
Also when I run the file again it will create another : can't I just replace whats already there?