Skip to content

Commit

Permalink
docs: add minimum versions [skip ci]
Browse files Browse the repository at this point in the history
templates: remove extra line continuation

Signed-off-by: Adphi <[email protected]>
  • Loading branch information
Adphi committed Sep 10, 2022
1 parent bb4c641 commit 3417f50
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ alias d2vm='docker run --rm -i -t --privileged -v /var/run/docker.sock:/var/run/

Working and tested:

- [x] Ubuntu
- [x] Debian
- [x] Ubuntu (18.04+)
- [x] Debian (stretch+)
- [x] Alpine
- [x] CentOS
- [x] CentOS (8+)

Unsupported:

Expand Down Expand Up @@ -194,7 +194,7 @@ applicable law.
root@localhost:~#
```

Type `poweroff` to shutdown the vm.
Type `poweroff` to shut down the vm.

### Building a VM Image from a Dockerfile

Expand Down
7 changes: 0 additions & 7 deletions templates/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,9 @@ RUN apk update --no-cache && \
busybox-initscripts \
openrc

#RUN apk update --no-cache && \
# apk add \
# linux-virt \
# alpine-base \
# openssh-server

RUN for s in bootmisc hostname hwclock modules networking swap sysctl urandom syslog; do rc-update add $s boot; done
RUN for s in devfs dmesg hwdrivers mdev; do rc-update add $s sysinit; done


RUN echo "root:{{- if .Password}}{{ .Password}}{{- else}}root{{- end}}" | chpasswd

{{ if eq .NetworkManager "ifupdown"}}
Expand Down
2 changes: 1 addition & 1 deletion templates/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ network:\n\
addresses:\n\
- 8.8.8.8\n\
- 8.8.4.4\n\
' > /etc/netplan/00-netcfg.yaml \
' > /etc/netplan/00-netcfg.yaml
{{ else if eq .NetworkManager "ifupdown"}}
RUN apt install -y ifupdown2
RUN mkdir -p /etc/network && printf '\
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ network:\n\
addresses:\n\
- 8.8.8.8\n\
- 8.8.4.4\n\
' > /etc/netplan/00-netcfg.yaml \
' > /etc/netplan/00-netcfg.yaml
{{ else if eq .NetworkManager "ifupdown"}}
RUN apt install -y ifupdown-ng
RUN mkdir -p /etc/network && printf '\
Expand Down

0 comments on commit 3417f50

Please sign in to comment.