Docker container for development purposes with pre-installed:
- Docker CLI
- oh-my-zsh
- git
- openssh-server
Read this article if you never used key-based authentication methods.
git clone [email protected]:anitvam/dev-container.git
cd dev-container
docker build . -t dev-container:latest
docker run -d -e PUBLIC_KEY="YOUR_PUB_KEY" -p 2222:22 -v /var/run/docker.sock:/var/run/docker.sock dev-container:latest
ssh dev@localhost:2222 -i ~/.ssh/<YOUR_PRI_KEY>
docker pull anitvam/dev-container:latest
docker run -d -e PUBLIC_KEY="YOUR_PUB_KEY" -p 2222:22 -v /var/run/docker.sock:/var/run/docker.sock dev-container:latest
ssh dev@localhost:2222 -i ~/.ssh/<YOUR_PRI_KEY>