Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson Menu doesn´t show up in Ubuntu 18.04.2 LTS (Bionic Beaver) Subsystem for Windows 10 #25

Open
FelixRodriguezJara opened this issue Jun 5, 2019 · 7 comments

Comments

@FelixRodriguezJara
Copy link

FelixRodriguezJara commented Jun 5, 2019

Hello Turkenh!

Fist of all, thank you very much for writting the tutorial. I am trying to use it in Ubuntu 18.04.2 LTS that comes with Windows 10. As you can see, Docker works fine and starts the containers, however, the Lesson menu doesn´t show up and you can´t pick any lesson, see traces below:

root@Felix-Rodriguez:/mnt/d/Felix/Tech/Ansible/ansible-interactive-tutorial-master# ./tutorial.sh
creating network ansible.tutorial
starting container host0.example.org: mapping hostport 42726 -> container port 80 && hostport 42729 -> container port 8080
starting container host1.example.org: mapping hostport 42727 -> container port 80 && hostport 42730 -> container port 30000
starting container host2.example.org: mapping hostport 42728 -> container port 80 && hostport 42731 -> container port 443
starting container ansible.tutorial

== ==

(Comment - According to the video, the lessons menu should be displayed here, but it's not)

  1. [Exit]

Please select a lesson: 1
(ENTER, nothing happens)

Please select a lesson: 1
(ENTER, nothing happens)

Please select a lesson:

The only selection that works is exit. Do you know why could this be happening?

Thank you very much.

Kind regards.

@ghost
Copy link

ghost commented Jun 6, 2019

For me with Win10 and Powershell menu opens then closes automatically. Tried to run it from Git bash , it complains about tty and suggest to use winpty. Tried ,not worked either. So in Hyperv I created an Ubuntu as virt machine and runnning it from there. It works well with same type of Ubuntu.

@FelixRodriguezJara
Copy link
Author

Thank you for your answer, atekka85epam! Yes, that was the behaviour for me too, I was trying to avoid having to create a new VM, that´s why I tried with the Windows 10 UNIX subsystem.

Thank you!

@turkenh
Copy link
Owner

turkenh commented Jun 12, 2019

Other open issues seems to be related but I could not find time to work on this yet.

Also please note, you can always run the tutorial on http://play-with-docker.com

@turkenh
Copy link
Owner

turkenh commented Jun 12, 2019

Ah, this one is different than other issues, I'll try to find a similar setup and try to reproduce.

@FelixRodriguezJara
Copy link
Author

FelixRodriguezJara commented Jun 13, 2019 via email

@dwettstein
Copy link

This issue still exists. It looks like it has something to do with mounted paths:
image

@dwettstein
Copy link

OK, got it to run using a workaround. I simply replaced the paths within the file tutorial.sh to absolute Windows paths (double backslash instead forward slash).

On my machine (Windows, using Git For Windows Bash) the variable BASEDIR is set to /c/Users/my-user/ansible-interactive-tutorial. So I added the following to the file tutorial.sh:

BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASEDIR_WIN="C:\\Users\\my-user\\ansible-interactive-tutorial"

NOF_HOSTS=3
NETWORK_NAME="ansible.tutorial"
WORKSPACE="${BASEDIR}/workspace"
WORKSPACE_WIN="${BASEDIR_WIN}\\workspace"
TUTORIALS_FOLDER="${BASEDIR}/tutorials"
TUTORIALS_FOLDER_WIN="${BASEDIR_WIN}\\tutorials"

And within the function runTutorialContainer, I referenced to the *_WIN variables for the docker run command.

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants