This box searches only this space. The box at the upper right searches the entire iPlant wiki.

Skip to end of metadata
Go to start of metadata

Note:  I'm on a mac.  If you are doing this through windows, some steps may be slightly different, but the overall process will still apply.  This is the most basic and generic process of getting Docker to run in a virtual machine provided through Virtual Box.  

If you want, you can use a more integrated solution such as

 

  1. Install Virtual Box (VB): https://www.virtualbox.org/wiki/Downloads
  2. Get Ubuntu: http://virtualboxes.org/images/ubuntu/
    1. 14.04: http://www.ubuntu.com/download/desktop
    2. Download the .iso file
  3. Create new VB Image:
    1. Click "New" in VB
    2. When you start the VM, select the iso file for ubuntu you downloaded

    3. You may to set the HD space to around 20G, just to have enough room to do some stuff

    4. When Ubuntu runs in the VM, you’ll have to install it (the iso is the installation "disk" for Ubuntu)

    5. Tips and tricks: 

      1. After installation, I noticed that my screen resolution was too small.  To change:

        1. Click “Devices” from VirtualBox menu bar at top of screen
        2. Click “Insert guest additions"
        3. I then applied updates to Ubuntu
        4. Restart guest OS
        5. Resize works!

      2. To enable copy/paste between your Mac Desktop and the Guest OS VM

        1. Virtualbox->Machine->Settings

        2. Select Advance tab

        3. Select “Bidirectional” for Shared Clipboard and Drag’n'Drop


  4. Install Docker
    1. https://docs.docker.com/installation/ubuntulinux/#for-trusty-14-04
    2. sudo apt- get update
    3. sudo apt- get install linux- image -generic-lts-trusty
    4. sudo reboot
    5. curl -sSL http s: // get .docker. com / | sh
  5. Start docker deamon: 
    1. sudo docker -d &
    2. Note:  I had this error:  "ubuntu 14.04 docker your kernel does not support cgroup memory limit: mountpoint for memory not found"
    3. To fix:
      1. sudo vi /etc/default/grub
      2. Modify: GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
      3. Save and close file
      4. sudo update-grub
      5. sudo reboot
  6. Verify Docker is installed
    1. sudo docker run hello-world
  7. If you don’t want to run docker as root all the time:
    1. http://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo


Next Step


 

  • No labels