简体   繁体   中英

How to start a container automatically in boot2docker on boot?

I'd like to start a reverse-proxy in my boot2docker VM when I run boot2docker up .

What's the preferred way to do so?

I thought about creating a startup script in the host-vm, but it would be nicer if I could add a set of startup scripts to boot2docker on my Mac, since these would not be erased when using another host image.

I've looked through the options of boot2docker and searched the web, but found nothing useful.

如果您不想更改主机映像,则也许可以使用另一个脚本来将boot2docker upboot2docker up docker start proxy...包装在一起。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM