Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after parameter in docker::run not working for me #616

Open
erikbotta opened this issue Dec 30, 2016 · 0 comments
Open

after parameter in docker::run not working for me #616

erikbotta opened this issue Dec 30, 2016 · 0 comments

Comments

@erikbotta
Copy link

erikbotta commented Dec 30, 2016

It is ignored and containers are started in bad order.

node 'couch-prod' {
 class { 'docker':
    manage_kernel => false,
  }

  docker::run { 'couchdb':
  image        => 'foo:5000/couchdb:latest',
  volumes      => ['/var/lib/couchdb:/var/lib/couchdb', '/var/log/couchdb:/var/log/couchdb','/var/log/nginx:/var/log/nginx','/var/lib/couchdb-delete:/car/lib/couchdb-delete'],
  hostname     => 'couch-prod-FQDNdeleted',
  ports        => ['443:443','6984:6984','8110:8110'],
  pull_on_start   => true,
  env          => ['ADMIN_PASSWORD="foo"', 'HOSTNAME=couch-prod'],
  extra_parameters => [ '--net bb-net --ip 192.168.1.19 --restart=always' ],
  privileged   => true
  }

  docker::run { 'couchdb-api':
  image        => 'foo:5000/couchdb-api:develop',
  volumes_from => 'couchdb',
  hostname     => 'couch-prod',
  ports        => ['9443:9443'],
  pull_on_start   => true,
  env          => ['PROFILE=prod_foo', 'HOSTNAME=couch-prod'],
  extra_parameters => [ '--net bb-net --ip 192.168.1.21 --restart=always' ],
  privileged   => true,
  after        => 'couchdb'
  }

}
Info: Applying configuration version '1483101464'
Error: Could not start Service[docker-couchdb-api]: Execution of '/etc/init.d/docker-couchdb-api start' returned 1: Starting docker-couchdb-api:        develop: Pulling from couchdb-api
Digest: sha256:f9b2008b9e522349066047283d733d92c6175967a7cd0419e9bd5a10ab41660f
Status: Image is up to date for carl.budgetbakers.com:5000/couchdb-api:develop
/usr/bin/docker: Error response from daemon: No such container: couchdb.
See '/usr/bin/docker run --help'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant