Creating a docker image on my mac HELP!

Ok … 3 days of trying later I am giving up!! I just cannot seem to create the image container (hopefully I am using the right vocab, I’m new to these … please teach me!) for tutor.

My current operating environment is Mac OS Sonoma 14.3.1 (23D60)

I believe I am trying to get an image container built in docker. I have saved the tutor folder with the dockerfile in it locally in my documents and tried using the docker build -t dockerfile . but keep getting this error back!
ERROR: failed to solve: docker.io/python:3.8-slim-stretch: docker.io/library/python:3.8-slim-stretch: not found

Can anyone help?

Hi @ewanbrightspark :slight_smile: I’m sorry to hear you’re having trouble using Tutor.

I’m not on a Mac, so can’t comment about Mac-specific issues, but you shouldn’t have to run any docker commands directly.

See Installing Tutor for the full docs, but there’s a lot there. So here are the steps I use to get my Tutor dev stack up and running:

# Using python 3.8 or 3.9, with the python3-venv module installed, use a python virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install Tutor and all its plugins
pip install "tutor[full]"

# Enable any extra plugins you want
tutor plugins list
tutor plugins enable --help

# This step will ask a few questions, then take care of everything for you, from pulling and building images to starting their services.
tutor dev launch 

# Go get a coffee. It'll be 15 min at least

Once it’s done, you’ll see a message like this:

All services initialised.
The platform is now running and can be accessed at the following urls:

http://local.edly.io:8000
http://studio.local.edly.io:8001
http://apps.local.edly.io:1999/authn
http://apps.local.edly.io:1997/account
http://apps.local.edly.io:1984/communications
http://apps.local.edly.io:2001/course-authoring
http://apps.local.edly.io:2002/discussions
http://apps.local.edly.io:1994/gradebook
http://apps.local.edly.io:1996/learner-dashboard
http://apps.local.edly.io:2000/learning
http://apps.local.edly.io:1993/ora-grading
http://apps.local.edly.io:1995/profile

The local.edly.io domain is mapped to 127.0.0.1 / localhost, so the domain and subdomains should already be working for you.

But if your build throws errors, or if something isn’t working as expected, could you post the details here?

1 Like

@jill thanks for this - finally helped me figure out how to get a local instance up and running. I got this terminal message as your stated

All services initialised.
The platform is now running and can be accessed at the following urls:

    http://local.edly.io:8000
    http://studio.local.edly.io:8001
    http://apps.local.edly.io:1999/authn
    http://apps.local.edly.io:1997/account
    http://apps.local.edly.io:1984/communications
    http://apps.local.edly.io:2001/course-authoring
    http://apps.local.edly.io:2002/discussions
    http://apps.local.edly.io:1994/gradebook
    http://apps.local.edly.io:1996/learner-dashboard
    http://apps.local.edly.io:2000/learning
    http://apps.local.edly.io:1993/ora-grading
    http://apps.local.edly.io:1995/profile


Now I’m getting a standard “site can’t be reached” error when I try to navigate to any of the URLS. Any idea where I can start troubleshooting that?

Thanks,
Ryan

1 Like

Congratulations @Ryan_Radwanski ! So glad you’ve got things running.

Now I’m getting a standard “site can’t be reached” error when I try to navigate to any of the URLS. Any idea where I can start troubleshooting that?

Hmm… Edly provide the DNS records that map local.edly.io to your localhost, but maybe that’s not working for you for some reason?

Open a Terminal, and type:

nslookup local.edly.io

and if it doesn’t come back with 127.0.0.1, then that’s your bunny. You can manually add entries to your /etc/hosts file to work around this, see How To Find and Edit Your Mac Hosts File (in 4 Steps).

But more likely it’s something to do with your firewall – Mac may have all those ports closed by default (the :8000, :8001, :1999 etc part of the service links). This page walks you through how to open port 8080, but you’ll need to repeat these steps for all of the port numbers listed in that service list: https://mkyong.com/mac/how-to-access-web-server-8080-in-mac-os-x/

Some interesting progress - thanks for all your help! after running:

nslookup local.edly.io

I got:

***Can't find local.edly.io: No answer

So I proceeded with manually adding adding to /etc/hosts:

127.0.0.1     local.edly.io

This got local.edly.io:8000 and local.edly.io:8001 pointing to the correct pages. However, none of the subdomains are working and when I rerun:

nslookup local.edly.io

I’m still getting no response even though I’m able to see the home page and studio home page in the browser. No firewall issues at play here, checked on all that. I’m thinking this is all configuring local DNS settings?

Hi @Ryan_Radwanski
You should map each subdomain in the hosts entry, you can put them all on one line separated by a space
eg:
127.0.0.1 local.edly.io studio.local.edly.io apps.local.edly.io

1 Like

awesome, thanks! We’re jamming now. Still a lot to explore and sort through, but having a raw local deployment is a nice step of progress.

1 Like