Install Oh My Zsh on Ubuntu Docker complete steps


Installing Oh My Zsh on Ubuntu Docker

You will need to install zsh, curl and git packages before you can install Oh My Zsh,

Steps to install Oh My Zsh on Ubuntu Docker Container

  1. Download docker image for Ubuntu: docker pull ubuntu
  2. Run the docker image: docker run ubuntu
  3. Run apt-get update to update the package list.
  4. Install zsh shell: apt-get install zsh
  5. Install curl: apt-get install curl
  6. Install git: apt-get install git
  7. Now run install.sh script from ohmyzsh github to install it,
    # sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
    Cloning Oh My Zsh...
    remote: Enumerating objects: 1279, done.
    remote: Counting objects: 100% (1279/1279), done.
    remote: Compressing objects: 100% (1235/1235), done.
    remote: Total 1279 (delta 24), reused 1216 (delta 24), pack-reused 0
    Receiving objects: 100% (1279/1279), 1.06 MiB | 2.46 MiB/s, done.
    Resolving deltas: 100% (24/24), done.
    From https://github.com/ohmyzsh/ohmyzsh
     * [new branch]      master     -> origin/master
    Branch 'master' set up to track remote branch 'master' from 'origin'.
    Already on 'master'
    /
    
    Looking for an existing zsh config...
    Using the Oh My Zsh template file and adding it to ~/.zshrc.
    
    Time to change your default shell to zsh:
    
    Do you want to change your default shell to zsh? [Y/n] y
    Changing your shell to /usr/bin/zsh...
    Shell successfully changed to '/usr/bin/zsh'.
    
             __                                     __   
      ____  / /_     ____ ___  __  __   ____  _____/ /_  
     / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \ 
    / /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / / 
    \____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/  
                            /____/                       ....is now installed!
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.