- Install docker:
- For Ubuntu 16.04:
apt-get install docker.io
- For others: check the official documentation
- Install docker-compose:
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
- Modify SSH password in
Dockerfile
- Run docker instance:
docker-compose up -d
- Log into server:
ssh root@localhost -p 2022