Skip to content

Instantly share code, notes, and snippets.

@yukpiz
Created November 24, 2016 07:07
Show Gist options
  • Save yukpiz/6b4ba13c8495ad20d840418b2d2cf971 to your computer and use it in GitHub Desktop.
Save yukpiz/6b4ba13c8495ad20d840418b2d2cf971 to your computer and use it in GitHub Desktop.

Startup

$ docker pull debian
$ docker run --name go-container -it -p 8081:80 debian:latest /bin/bash

Required

Commons

$ apt-get update
$ apt-get install vim git mysql-client

Copy ssh-key to container

# Host Machine
$ docker exec -i go-container /bin/bash -c 'cat > /root/.ssh/****_rsa' < ./****_rsa
$ docker exec -i go-container /bin/bash -c 'cat > /root/.ssh/****_rsa.pub' < ./****_rsa.pub

Attach container

$ docker exec -it go-container /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment