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 inspect with unix:///var/run/docker.sock (in Java or Scala)
  • Is it possible to assign a static IP adress to a docker container after it's creation?
  • How to place files on shared volume from within Dockerfile?
  • can't save docker images
  • DashDB local (docker) failed to start because database services didn't start
  • docker-machine without TLS verification
  • 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.

  • Could not run asp.net mvc 6 on Docker
  • `sudo docker build .` fails from Docker snap package
  • Windows Docker in PyCharm - How to locate files on my host computer?
  • How to run docker daemon?
  • Copy apidoc files from dokku container to host apache folder
  • how to determine whether a given docker environment is based on libcontainer or lxe
  • 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.