Docker Community Forums

Share and learn in the Docker community.

Couple different packages not installing properly


(Jalama) #1

Expected behavior

A build using an image form a Dockerfile derived form the official drupal image on hub.docker.com. I have added in drush and SSH installations. The output of the build indicates that everything went as expected. ie SSH was installed, drush was installed…

Actual behavior

When I run the buid and interactivly connect (docker exec -it live-web bash) and inspect the box, the /usr/local/bin/drush file is not there nor is ssh installed or the ssh_config files (since ssh never installed the /etc/ssh directory.) The same is true of just about everything else I install (composer, etc…) but those are commented out in the Dockerfile.

Worth noting I can install drush by hand by running the same commands directly on the interactive shell in the web container.

Information

  • the output of:
    • pinata diagnose -u on OSX
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.1-beta11
Running diagnostic tests:
[OK]      docker-cli
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x
Docker logs are being collected into /tmp/20160517-095514.tar.gz
Most specific failure is: No error was detected
Your unique id is: 92A615E2-A678-4374-86C8-0E802FE1F937
Please quote this in all correspondence.

Steps to reproduce the behavior

  1. Create a diectory and copy the Dockerfile form above into it
  2. docker build --no-cache .
  3. docker exec -it live-web bash
  4. drush