You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
host
root@Containerd:/home1/container# nerdctl exec -it sniper1 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
TERM=xterm
HOME=/root
in container
[root@sniper sniper]# env
ABCD=1
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/home1/sniper/sniper
LANG=en_US.UTF-8
AA1=1
SHLVL=1
HOME=/root
LESSOPEN=||/usr/bin/lesspipe.sh %s
_=/usr/bin/env
============
root@Containerd:/home1/container# nerdctl exec -it sniper1 ls
a.sh b.sh c.sh ...
=> .bashrc(X), .bash_profile(X), /etc/profile(X), /etc/bashrc(X)
i want to 'nerdctl exec -it sniper1 ls' command with env file
Beta Was this translation helpful? Give feedback.
All reactions