Update README to reflect change in fetch flags and new -p flag for create

This commit is contained in:
yo 2024-09-22 17:37:03 +02:00
parent 2df22b10b1
commit 5b2f3a2f0a

View File

@ -18,8 +18,7 @@ Create jails
------------ ------------
For now, we can't pass config at creation time. We have to define config after creation: For now, we can't pass config at creation time. We have to define config after creation:
<pre><code> <pre><code>
gocage create jail1 -r 13.2-RELEASE gocage create jail1 -r 13.2-RELEASE -p "Config.Ip4_addr='vnet0|192.168.1.91/24',Config.Ip6=none,Config.Boot=1"
gocage set Config.Ip4_addr="vnet0|192.168.1.91/24" Config.Vnet=1 jail1
</code></pre> </code></pre>
Create basejail (jail based on a release, system will be nullfs read-only mounted from the release directory): Create basejail (jail based on a release, system will be nullfs read-only mounted from the release directory):
@ -30,7 +29,6 @@ gocage create -b -r 14.0-RELEASE basejail1
List jails List jails
---------- ----------
Nothing fancy, just use
`gocage list` `gocage list`
### Specify fields to display ### Specify fields to display
@ -233,7 +231,7 @@ Fetch
Files can be fetched from custom repository, or from local directory with "from" option. Files can be fetched from custom repository, or from local directory with "from" option.
For example if you destroyed releases/12.3-RELEASE and still have the downloaded files in /iocage/download/12.3-RELEASE: For example if you destroyed releases/12.3-RELEASE and still have the downloaded files in /iocage/download/12.3-RELEASE:
<pre><code> <pre><code>
gocage fetch -r 12.3 -o iocage --from file:/iocage/download gocage fetch -r 12.3 -d iocage -f file:/iocage/download
</pre></code> </pre></code>