Barbarian Meets Coding
barbarianmeetscoding

WebDev, UX & a Pinch of Fantasy

1 minute readdocker

Docker

What is Docker?

// TODO

Docker Cheatsheet

# Build an image from a docker file
docker build --tag={name_of_image}

# Run image
docker run {name_of_image}

# Run image with support for terminal apps like vim
docker run -it {name_of_image}

Example Docker File to Setup Neovim on Ubuntu

FROM ubuntu:latest

RUN apt-get update
RUN apt-get install software-properties-common -y
RUN add-apt-repository ppa:neovim-ppa/stable
RUN apt-get update

# See versions available
# RUN apt-cache policy neovim

RUN apt-get install neovim -y

ENTRYPOINT ["nvim"]

References


Jaime González García

Written by Jaime González García , dad, husband, software engineer, ux designer, amateur pixel artist, tinkerer and master of the arcane arts. You can also find him on Twitter jabbering about random stuff.Jaime González García