Skip to content

scale and build do not work well together #2721

@schmunk42

Description

@schmunk42

I have this Dockerfile

mrb:
  build: .
  environment:
    - affinity:container!=/mrb/

I run this against as swarm. The container should spread across nodes and should be built - not a common use-case, I know. But I tried to overcome issues with host-volumes.

I was able to get two containers up and running, but nonetheless building on a swarm and scale should at least trigger a warning, since you can't really ensure that all nodes have the same version of a built image.

docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   a34a1d5
 Built:        Fri Nov 20 12:50:31 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      swarm/1.0.0
 API version:  1.21
 Go version:   go1.5.1
 Git commit:   087e245
 Built:        
 OS/Arch:      linux/amd64
docker-compose version 1.5.2, build 7240ff3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions