Skip to content

Instantly share code, notes, and snippets.

@alexniver
Created November 20, 2015 13:01
Show Gist options
  • Save alexniver/23fa3a27cd6e33ff0ccd to your computer and use it in GitHub Desktop.
Save alexniver/23fa3a27cd6e33ff0ccd to your computer and use it in GitHub Desktop.
Docker 官方教程, 创建自己的鲸鱼那, 如果使用Ubuntu14.04, 使用文档中的Dockerfile是有问题的. 需要在apt-get 前面加入 DEBIAN_FRONTEND=noninteractive
不然会报错.
效果如下:
```
FROM docker/whalesay:latest
DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get install -y fortunes
CMD /usr/games/fortune -a | cowsay
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment