docker-airflow icon indicating copy to clipboard operation
docker-airflow copied to clipboard

add a text editor to it

Open MrAmbiG opened this issue 5 years ago • 4 comments

If anyone needs to edit the conf files then they cant since there is no text editor in it. If someone tries to install it then it just says can't find it (apt-get install nano/vim/vi). Sudo didnt work either since I dont know the sudo password for these.

MrAmbiG avatar Jul 22 '19 12:07 MrAmbiG

@MrAmbiG you can shell into the running container as root and apt-get install vim.

$ docker exec -u root -it <airflow_container_id> bash
root@c2a18a5bcfea:/usr/local/airflow# apt-get update
root@c2a18a5bcfea:/usr/local/airflow# apt-get install vim

koszti avatar Sep 27 '19 19:09 koszti

hi, when i try logging into the container as root and installing vim, i still get the following output :

Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package vim

root@8e62282b605b:/usr/local/airflow# vim bash: vim: command not found

dbishnoi avatar Feb 27 '20 19:02 dbishnoi

Is this issue resolved? I am still getting the issue "bash: vim: command not found"

aniljainbaba avatar Apr 17 '22 20:04 aniljainbaba

Hi @aniljainbaba and @dbishnoi, first update the all the packages before executing this command. apt-get update apt-get install vim it worked for me.

suraj221b avatar Jan 11 '23 06:01 suraj221b