Skip to content

Instantly share code, notes, and snippets.


Erigitic/Dockerfile Secret

Last active Jul 20, 2019
What would you like to do?
FROM ubuntu:18.04
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y python3 python3-pip python python-pip vim netcat curl gcc gdb wget git make libc6:i386 libncurses5:i386 libstdc++6:i386 && \
mkdir tools && \
cd tools
# Install some tools

This comment has been minimized.

Copy link
Owner Author

@Erigitic Erigitic commented Jul 18, 2019

Build & Run

  1. Build a Docker image with the name and tag "ubuntu18:ctf" (name:tag)(Name it anything you'd like) from the specified Dockerfile:
    docker build -t ubuntu18:ctf - < Dockerfile

  2. Run a container and spawn an interactive shell:
    docker run --rm -v $PWD:/pwd -it ubuntu18:ctf /bin/bash

--rm - Remove the container on exit
-v $PWD:/pwd - Mount the current working directory (`$PWD`) into the container (`/pwd`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.