Skip to content

kmanaseryan/docker-tips-tricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Docker tips tricks

Write about docker tips and tricks that might be useful for others.

How to update files in docker container

  1. See what containers are running.

docker ps

  1. Open the shell in the running container. You can get the container hash from the previous command

docker exec -it <CONTAINER HASH> bash

  1. Edit whatever file you want. If nano is not found, then you can install it from the terminal. Depending on the OS it might be different.

nano <FILE NAME>

  1. Exit the shell

exit

  1. Now in order to apply your changes you have to restart the container.

docker restart <CONTAINER HASH>

That's all!

About

Docker tips & tricks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published