Docker Community Forums

Share and learn in the Docker community.

Scripting docker commands

(Milads) #1

I use Docker Toolbox 1.10.3 with Windows 7. I am trying to write a file which automates my build/push steps.
My looks like this:

#!/C/Program Files/Docker Toolbox/

# Futher docker commands  

Unfortunately, this creates the following error:

An error occurred trying to connect: Post{}&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&memory=0&memswap=0&rm=1&shmsize=0&t=“my-repository”%3Adb&ulimits=null: dial tcp connectex: Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte.

I dont get this error when I start and then enter the docker commands manually.

I have no experience with shell files and thus have a very hard time unterstanding the content of I would be grateful about any help.