Docker Quickstart Terminal incompatible with iTerm 2.9 #348

Open
rtomaszewski opened this Issue Dec 15, 2015 · 18 comments

Comments

Projects
None yet
@rtomaszewski

hi,

After successful installation of docker on mac when i try to star the Docker Quickstart Terminal im getting this error:

error "iTerm got an error: «class Ctrm» doesn’t understand the “«event ITRMLNCH»” message." number -1708 from alias "Macintosh HD:Applications:Docker:Docker Quickstart Terminal.app:Contents:Resources:Scripts:iterm.scpt"

When trying to debug it in the Apple Script edditor where it is coming from it points there:
https://gist.github.com/rtomaszewski/edff00a2a18b247bbcf7#file-docker-issue-L35

It was suggested that i may have some custom setting for my default terminal set to Iterm2. The default terminal app on mac is : Terminal. I was trying to confirm this but im not sure.

Some links that may help if this is a term issue in mac.
http://superuser.com/questions/379342/setting-iterm2-as-the-default-terminal-osx-lion

cd /Users/$user/Library/Preferences
$ for i in **.plist ; do echo -- $i; /usr/libexec/PlistBuddy -c Print $i | egrep -i 'term|iterm' ; done

My software
mac: v 10.9.5
Iterm2: Build 2.9.20150626
terminal : Version 2.4 (326)

Thanks
Rado

@jmorganca jmorganca changed the title from can't start Docker Quickstart Terminal to Docker Quickstart Terminal incompatible with iTerm 2.9 Dec 22, 2015

@jmorganca jmorganca added the bug label Dec 22, 2015

@jmorganca

This comment has been minimized.

Show comment
Hide comment
@jmorganca

jmorganca Dec 22, 2015

Member

I think iTerm 2.9 changed their Applescript interface, thus the Quickstart terminal may be currently incompatible. Sorry about that - I've flagged this as a bug

Member

jmorganca commented Dec 22, 2015

I think iTerm 2.9 changed their Applescript interface, thus the Quickstart terminal may be currently incompatible. Sorry about that - I've flagged this as a bug

@russjaguar

This comment has been minimized.

Show comment
Hide comment
@russjaguar

russjaguar Feb 4, 2016

I'm also seeing this. As a temporary workaround I wrote this in a new Applescript named "docker_quickstart.scpt":

run script file "Applications:Docker:Docker Quickstart Terminal.app:Contents:Resources:Scripts:terminal.scpt"

Then in a terminal:

osascript docker_quickstart.scpt

This will open a new Terminal window and you can continue with the tutorials. This assumes you've accepted the default install location. You may need to change the path if you installed to somewhere else.

I'm also seeing this. As a temporary workaround I wrote this in a new Applescript named "docker_quickstart.scpt":

run script file "Applications:Docker:Docker Quickstart Terminal.app:Contents:Resources:Scripts:terminal.scpt"

Then in a terminal:

osascript docker_quickstart.scpt

This will open a new Terminal window and you can continue with the tutorials. This assumes you've accepted the default install location. You may need to change the path if you installed to somewhere else.

@devinus

This comment has been minimized.

Show comment
Hide comment
@devinus

devinus Feb 26, 2016

I'm not sure if I get any errors, but the terminal does come to the foreground but does not open a tab (iTerm2 2.9.20160206).

devinus commented Feb 26, 2016

I'm not sure if I get any errors, but the terminal does come to the foreground but does not open a tab (iTerm2 2.9.20160206).

@cpres

This comment has been minimized.

Show comment
Hide comment
@cpres

cpres Feb 26, 2016

I'm still getting this error with the most recent Docker download and iTerm (Build 2.9.20160206). @russjaguar work around worked well.

cpres commented Feb 26, 2016

I'm still getting this error with the most recent Docker download and iTerm (Build 2.9.20160206). @russjaguar work around worked well.

@keepscoding

This comment has been minimized.

Show comment
Hide comment
@keepscoding

keepscoding Feb 29, 2016

@russjaguar work around worked well +1

@russjaguar work around worked well +1

@onetwopunch

This comment has been minimized.

Show comment
Hide comment

Thanks @russjaguar 👍

@leoj3n

This comment has been minimized.

Show comment
Hide comment
@facundofarias

This comment has been minimized.

Show comment
Hide comment
@facundofarias

facundofarias Mar 18, 2016

You can also do:
source /Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/start.sh

It works perfect with iTerm2 Build 2.9.20160206

You can also do:
source /Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/start.sh

It works perfect with iTerm2 Build 2.9.20160206

@lwieske

This comment has been minimized.

Show comment
Hide comment
@lwieske

lwieske Mar 20, 2016

@facundofarias ... sourcing start.sh works perfect with iTerm2 Build 2.9.20160313 as well.

lwieske commented Mar 20, 2016

@facundofarias ... sourcing start.sh works perfect with iTerm2 Build 2.9.20160313 as well.

@andykingking

This comment has been minimized.

Show comment
Hide comment
@jeop10

This comment has been minimized.

Show comment
Hide comment
@jeop10

jeop10 Apr 9, 2016

@facundofarias Thanks it works!!! iTerm2 Build 2.9.20160313

jeop10 commented Apr 9, 2016

@facundofarias Thanks it works!!! iTerm2 Build 2.9.20160313

@ryutamaki

This comment has been minimized.

Show comment
Hide comment

👍

@3fernandez

This comment has been minimized.

Show comment
Hide comment

@FrenchBen FrenchBen referenced this issue in docker/kitematic May 16, 2016

Merged

Add support for launching iTerm 2.9+ #855

@jsgv

This comment has been minimized.

Show comment
Hide comment
@jsgv

jsgv May 17, 2016

Source'ing the file works perfectly, but if i try to open the terminal throught the "Docker CLI" button on Kitematic it will open an iTerm window and Terminal.app window and start my shell in the latter.

Any way to set default as iTerm?

jsgv commented May 17, 2016

Source'ing the file works perfectly, but if i try to open the terminal throught the "Docker CLI" button on Kitematic it will open an iTerm window and Terminal.app window and start my shell in the latter.

Any way to set default as iTerm?

@juliocanares

This comment has been minimized.

Show comment
Hide comment
@juliocanares

juliocanares Jun 6, 2016

it's working in iTerm2 2.1.4

it's working in iTerm2 2.1.4

@virajkanwade

This comment has been minimized.

Show comment
Hide comment
@virajkanwade

virajkanwade Jun 9, 2016

Contributor

Added a patch #508

Contributor

virajkanwade commented Jun 9, 2016

Added a patch #508

@Adzz

This comment has been minimized.

Show comment
Hide comment
@Adzz

Adzz Jul 27, 2016

@facundofarias Also works if you add an alias to the command:

alias dqs='/Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/start.sh' # Open Docker Terminal

Adzz commented Jul 27, 2016

@facundofarias Also works if you add an alias to the command:

alias dqs='/Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/start.sh' # Open Docker Terminal
@danigosa

This comment has been minimized.

Show comment
Hide comment
@danigosa

danigosa Sep 30, 2016

Adding this to ~/.bash_profile makes it run as default in every bash:

# The next line enables Docker Machine for default VM
docker-machine active
if [ $? -eq 1 ]; then
     source /Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/start.sh
fi

Adding this to ~/.bash_profile makes it run as default in every bash:

# The next line enables Docker Machine for default VM
docker-machine active
if [ $? -eq 1 ]; then
     source /Applications/Docker/Docker\ Quickstart\ Terminal.app/Contents/Resources/Scripts/start.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment