Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Docker error on load #1388

Closed
nerdstein opened this issue May 28, 2017 · 6 comments
Closed

Docker error on load #1388

nerdstein opened this issue May 28, 2017 · 6 comments

Comments

@nerdstein
Copy link
Contributor

Issue Type

Bug Report / Support Request

Your Environment

nerdstein@Adams-MBP-2 box $ docker-compose up -d
Creating network "box_drupalvm" with driver "bridge"
Pulling drupal-vm (drupal-vm:latest)...
ERROR: repository drupal-vm not found: does not exist or no pull access

Your OS

macOS 10.12.5

Full console output

See above

Summary

I created a config.yml and overrode the following:

vagrant_hostname: nerdstein.local
vagrant_machine_name: nerdstein
vagrant_ip: 192.168.88.88


drupal_composer_project_options: "--prefer-source --stability dev --no-interaction"

installed_extras:
  - drush

drush_version: "8.1.11"


vagrant_synced_folders:
  # The first synced folder will be used for the default Drupal installation, if
  # any of the build_* settings are 'true'. By default the folder is set to
  # the drupal-vm folder.
  - local_path: ../code
    destination: /var/www/drupalvm
    type: nfs
    create: true

I have the following docker-compose.yml:

version: "3"

services:

  drupal-vm:

    # Switch the image to `geerlingguy/drupal-vm` to use Drupal VM defaults.
    image: drupal-vm
    # Comment out 'image' and uncomment the line below if customizing Drupal VM
    # with a project-specific Dockerfile in the same directory as this file.
    # build: .

    # Set this to your project's machine name (e.g. example-com)
    container_name: nerdstein-d8

    ports:
      - 80:80
      - 443:443
      - 3306:3306
      - 8025:8025

    # Not strictly required, but custom DNS settings can help with stability.
    dns:
      - '8.8.8.8'
      - '8.8.4.4'

    # Use of the `delegated` option currently requires the Docker Edge release.
    volumes:
      - ./:/var/www/drupalvm/:rw,delegated

    privileged: true
    command: /lib/systemd/systemd

    networks:
      drupalvm:
        # Set this IP address to something different if you already have another
        # service running on the default IP address. If you change the subnet,
        # you need to also change the bridge network IP and subnet below.
        ipv4_address: 192.168.88.88

networks:

  # This custom network allows Drupal VM to be accessed on an IP address.
  drupalvm:
    driver: bridge
    driver_opts:
      ip: 192.168.88.1
    ipam:
      config:
        - subnet: "192.168.88.0/16"

I received the error above after running docker-compose up -d

@nerdstein
Copy link
Contributor Author

After switching image: drupal-vm to image: geerlingguy/drupal-vm, it seems to work.

Might I recommend that switch for the example.docker-compose.yml file?

@nerdstein
Copy link
Contributor Author

Pull request: #1389

@geerlingguy
Copy link
Owner

So far I'm split 50/50 on having that as the default. Technically speaking, it would allow you to just use the docker-compose.yml out of the box... but I was envisioning the primary use case would be for people to build customized drupal-vm instances ala http://docs.drupalvm.com/en/latest/other/docker/#method-2-bake-and-share-a-custom-drupal-vm-docker-image

But we could default to geerlingguy/drupal-vm instead, then change the docs... what do you/others think should be the default?

@oxyc
Copy link
Collaborator

oxyc commented Jun 3, 2017

I vote for going with defaults that work out of the box otherwise we'll probably have this issue pop up over and over again.

@geerlingguy
Copy link
Owner

True, true...

@nerdstein
Copy link
Contributor Author

I want to stress the outcome should be whatever will give users the least pain in setting this up.

One thing I love about the non-Docker build is that I can (basically) run one command and have a site ready to go (case 1). I can extend this by overriding specific variables in a config file and have a provisioned site with exactly what I want (case 2).

Both things are trivial activities that have a shallow learning curve and an extreme amount of flexibility. For Docker, I'd love to see both cases accounted for. Is the YML config going away in Docker?

If using image: geerlingguy/drupal-vm gets the project further to either of those goals out of the box, it has my vote.

geerlingguy added a commit that referenced this issue Jun 25, 2017
Fixes #1388, Fixes #1389: Update documentation reflecting Docker Compose defaults.
ashabed pushed a commit to debugacademy/academyvm that referenced this issue Jan 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants