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.

  • Docker image just contain software without OS
  • Difference between of intermediate_ip_address and private_ip_address in bluemix container groups
  • Docker - server hitting EOF
  • Docker how to create container
  • Vagrant ssh to Docker container
  • How do I reload haproxy.cfg on the default Dockerfile?
  • 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.

  • Security measures with unsafe code on Docker
  • How to push to AWS EC2 Service Container from a specific git branch (ie 'staging')
  • docker-compose up postgresql error, chown: changing ownership of ‘/var/lib/postgresql/data’: Operation not permitted
  • Docker caching for travis builds
  • Different development environments with docker
  • How can I find public images (like ubuntu) in Docker-Hub, using REST API?
  • 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.