Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active August 5, 2020 09:08
Show Gist options
  • Save amcginlay/0d0448bdad97fad32844a76dec666f3d to your computer and use it in GitHub Desktop.
Save amcginlay/0d0448bdad97fad32844a76dec666f3d to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir myubuntu && cd $_
echo "FROM ubuntu:latest" > Dockerfile
docker build -t myubuntu . # notice IMAGE ID will be identical to ubuntu:latest as no extra layers added
docker container run -it myubuntu /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment