I run open data cube (ODC) docker (opendatacube-core and jupyterhub) and I expected that I can run jupyter notebook into it with ODC. However, I didn't. How can I run container (docker) of ODC and I can use Jupyter notebook with ODC?


There's an example configuration of the Open Data Cube and Docker available called "Cube in a Box".

You should be able to get something up using just Docker Compose, as shown below, but the above repository has an example of a Dockerfile, Docker Compose configuration and product definition and indexing scripts.

version: '3'

    image: postgres:10.3
    - POSTGRES_DB=opendatacube
    - POSTGRES_PASSWORD=opendatacubepassword
    - POSTGRES_USER=opendatacube

    image: opendatacube/jupyter
    - DB_HOSTNAME=postgres
    - DB_USERNAME=opendatacube
    - DB_PASSWORD=opendatacubepassword
    - DB_DATABASE=opendatacube
    - "80:8888"
    - ./notebooks:/notebooks
    command: jupyter notebook --allow-root --ip="" --NotebookApp.token='secretpassword'
  • 1
    Thanks a lot. I think that with it I can taste ODC a lot. Very good! Mar 17 '19 at 23:52
  • I need to put ports: - "8888:8888" to work here. Mar 18 '19 at 0:35
  • The one I showed will make Jupyter accessible on port 80. Up to you what you do there!
    – Alex Leith
    Mar 18 '19 at 0:36
  • 1
    Very good. You make me happy today! Good! Mar 18 '19 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.