Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 199 Bytes

docker-autostart.md

File metadata and controls

11 lines (9 loc) · 199 Bytes

Docker Autostart in WSL2

Add the following to your .bashrc:

if [ ! -n "$CONTAINER_NAME" ]; then
	if [ -n "`service docker status | grep not`" ]; then
		sudo service docker start
	fi
fi