OSX docker build error Command not found: -t

This command used to work just fine a couple of days ago:

  docker buildĀ  -t dtwill/elasticsearch . | tee build.log

Now it errors with the command not found -t. The only thing that has changed in my environment is I installed docker-py via pip.

  • How to improve Kubernetes security especially inter-Pods?
  • tutum node always at full memory consumption
  • Is it possible to use docker with jrebel or dcevm
  • Docker volume recreates a new target path every time
  • mount root FS read only with docker-compose
  • Lets encrypt failed authorization procedure - docker
  • Here is the output after boot2docker starts:

      bash-3.2$ docker version
      Client version: 1.3.2
      Client API version: 1.15
      Go version (client): go1.3.3
      Git commit (client): 39fa2fa
      OS/Arch (client): darwin/amd64
      Server version: 1.4.0
      Server API version: 1.16
      Go version (server): go1.3.3
      Git commit (server): 4595d4f
    

    I’m assuming docker-py has mucked something up…I was trying to execute a fig up when the build failed during an apt-get update so I tried building the image via docker instead of fig….BUT…fig has been installed for a while and the docker build -t was working while fig was installed.

    [UPDATE] So, I uninstalled docker-py and updated boot2docker so now the client is at version 1.4.1 but the build command is still erroring.

  • make causes core dump when entering an existing container
  • Not dockerized nginx load balancing to gitlab dockerized
  • Docker build npm error logs
  • Setting build args for dockerfile agent using a Jenkins declarative pipeline
  • NGINX based sample website in a container
  • Is there any reason to favour concatenated RUN directives over RUNning a script?
  • One Solution collect form web for “OSX docker build error Command not found: -t”

    This isn’t much of an answer but docker is working again. I uninstalled docker-py (the last thing I installed, when docker was functioning as expected) and re-installed docker with the OS X installer. My Dockerfiles are building again.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.