pub fn hostname<T>(&mut self, name: T) -> &mut Self
        where T: Into<String>
    {
        self.hostname = Some(name.into());

        self
    }
/// Set hostname for this container.
///
/// # Examples
///
/// ```rust
/// # use docker_client::container::ConfigBuilder;
/// let builder = ConfigBuilder::with_image("alpine")
///     .hostname("example-hostname")
///     .build();
/// ```
Set hostname for this container.
Set hostname for this container .
pub fn hostname<T>(&mut self, name: T) -> &mut Self
        where T: Into<String>
    {
        self.hostname = Some(name.into());
        self
    }
pub fn hostname < T > ( & mut self , name : T ) -> & mut Self where T : Into < String > { self . hostname = Some ( name . into ( ) ) ; self }
Set hostname for this container.
Set hostname for this container .
&mut self
name
T
&mut self
name
T
examples
None
use docker_client::container::configbuilder;
let builder = ConfigBuilder::with_image("alpine")
.hostname("example-hostname")
.build();
```
let builder = ConfigBuilder :: with_image ( " alpine " ) . hostname ( " example - hostname " ) . build () ; ` ` `