Skip to content

Instantly share code, notes, and snippets.

View rajula96reddy's full-sized avatar

Rajula Vineet Reddy rajula96reddy

View GitHub Profile

List

Run the following in a container

  1. apt-get update
  2. apt-get install ssh vim
  3. passwd Give a password
  4. vim /etc/ssh/sshd_config change the line 'PermitRootLogin prohibit-password' to 'PermitRootLogin yes'
  5. service ssh start
  6. Come out of the container & run docker ps -a. Copy the running container id
  7. run in a different terminal docker commit