1. Packages
  2. Routeros Provider
  3. API Docs
  4. Container
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.Container

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const busybox = new routeros.Container("busybox", {
        remoteImage: "library/busybox:1.35.0",
        cmd: "/bin/httpd -f -p 8080",
        "interface": routeros_interface_veth.busybox.name,
        logging: true,
        rootDir: "/usb1-part1/containers/busybox/root",
        startOnBoot: true,
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    busybox = routeros.Container("busybox",
        remote_image="library/busybox:1.35.0",
        cmd="/bin/httpd -f -p 8080",
        interface=routeros_interface_veth["busybox"]["name"],
        logging=True,
        root_dir="/usb1-part1/containers/busybox/root",
        start_on_boot=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := routeros.NewContainer(ctx, "busybox", &routeros.ContainerArgs{
    			RemoteImage: pulumi.String("library/busybox:1.35.0"),
    			Cmd:         pulumi.String("/bin/httpd -f -p 8080"),
    			Interface:   pulumi.Any(routeros_interface_veth.Busybox.Name),
    			Logging:     pulumi.Bool(true),
    			RootDir:     pulumi.String("/usb1-part1/containers/busybox/root"),
    			StartOnBoot: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Routeros = Pulumi.Routeros;
    
    return await Deployment.RunAsync(() => 
    {
        var busybox = new Routeros.Container("busybox", new()
        {
            RemoteImage = "library/busybox:1.35.0",
            Cmd = "/bin/httpd -f -p 8080",
            Interface = routeros_interface_veth.Busybox.Name,
            Logging = true,
            RootDir = "/usb1-part1/containers/busybox/root",
            StartOnBoot = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.Container;
    import com.pulumi.routeros.ContainerArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var busybox = new Container("busybox", ContainerArgs.builder()
                .remoteImage("library/busybox:1.35.0")
                .cmd("/bin/httpd -f -p 8080")
                .interface_(routeros_interface_veth.busybox().name())
                .logging(true)
                .rootDir("/usb1-part1/containers/busybox/root")
                .startOnBoot(true)
                .build());
    
        }
    }
    
    resources:
      busybox:
        type: routeros:Container
        properties:
          remoteImage: library/busybox:1.35.0
          cmd: /bin/httpd -f -p 8080
          interface: ${routeros_interface_veth.busybox.name}
          logging: true
          rootDir: /usb1-part1/containers/busybox/root
          startOnBoot: true
    

    Create Container Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Container(name: string, args: ContainerArgs, opts?: CustomResourceOptions);
    @overload
    def Container(resource_name: str,
                  args: ContainerArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Container(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  interface: Optional[str] = None,
                  hostname: Optional[str] = None,
                  cmd: Optional[str] = None,
                  comment: Optional[str] = None,
                  container_id: Optional[str] = None,
                  dns: Optional[str] = None,
                  domain_name: Optional[str] = None,
                  entrypoint: Optional[str] = None,
                  envlist: Optional[str] = None,
                  ___id_: Optional[float] = None,
                  file: Optional[str] = None,
                  mounts: Optional[Sequence[str]] = None,
                  logging: Optional[bool] = None,
                  ___path_: Optional[str] = None,
                  remote_image: Optional[str] = None,
                  root_dir: Optional[str] = None,
                  start_on_boot: Optional[bool] = None,
                  stop_signal: Optional[str] = None,
                  timeouts: Optional[ContainerTimeoutsArgs] = None,
                  user: Optional[str] = None,
                  workdir: Optional[str] = None)
    func NewContainer(ctx *Context, name string, args ContainerArgs, opts ...ResourceOption) (*Container, error)
    public Container(string name, ContainerArgs args, CustomResourceOptions? opts = null)
    public Container(String name, ContainerArgs args)
    public Container(String name, ContainerArgs args, CustomResourceOptions options)
    
    type: routeros:Container
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContainerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Container Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Container resource accepts the following input properties:

    Interface string
    veth interface to be used with the container
    Cmd string
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    Comment string
    ContainerId string
    The ID of this resource.
    Dns string
    Set custom DNS servers
    DomainName string
    Container NIS domain name
    Entrypoint string
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    Envlist string
    list of environmental variables (configured under /container envs ) to be used with container
    File string
    container *tar.gz tarball if the container is imported from a file
    Hostname string
    Container host name
    Logging bool
    if set to yes, all container-generated output will be shown in the RouterOS log
    Mounts List<string>
    Mounts from /container/mounts/ sub-menu to be used with this container
    RemoteImage string
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    RootDir string
    Used to save container store outside main memory
    StartOnBoot bool
    Start the container on boot
    StopSignal string
    Signal to stop the container.
    Timeouts ContainerTimeouts
    User string
    Sets the username used
    Workdir string
    The working directory for cmd entrypoint
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Interface string
    veth interface to be used with the container
    Cmd string
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    Comment string
    ContainerId string
    The ID of this resource.
    Dns string
    Set custom DNS servers
    DomainName string
    Container NIS domain name
    Entrypoint string
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    Envlist string
    list of environmental variables (configured under /container envs ) to be used with container
    File string
    container *tar.gz tarball if the container is imported from a file
    Hostname string
    Container host name
    Logging bool
    if set to yes, all container-generated output will be shown in the RouterOS log
    Mounts []string
    Mounts from /container/mounts/ sub-menu to be used with this container
    RemoteImage string
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    RootDir string
    Used to save container store outside main memory
    StartOnBoot bool
    Start the container on boot
    StopSignal string
    Signal to stop the container.
    Timeouts ContainerTimeoutsArgs
    User string
    Sets the username used
    Workdir string
    The working directory for cmd entrypoint
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    interface_ String
    veth interface to be used with the container
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    cmd String
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment String
    containerId String
    The ID of this resource.
    dns String
    Set custom DNS servers
    domainName String
    Container NIS domain name
    entrypoint String
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist String
    list of environmental variables (configured under /container envs ) to be used with container
    file String
    container *tar.gz tarball if the container is imported from a file
    hostname String
    Container host name
    logging Boolean
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts List<String>
    Mounts from /container/mounts/ sub-menu to be used with this container
    remoteImage String
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    rootDir String
    Used to save container store outside main memory
    startOnBoot Boolean
    Start the container on boot
    stopSignal String
    Signal to stop the container.
    timeouts ContainerTimeouts
    user String
    Sets the username used
    workdir String
    The working directory for cmd entrypoint
    interface string
    veth interface to be used with the container
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    cmd string
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment string
    containerId string
    The ID of this resource.
    dns string
    Set custom DNS servers
    domainName string
    Container NIS domain name
    entrypoint string
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist string
    list of environmental variables (configured under /container envs ) to be used with container
    file string
    container *tar.gz tarball if the container is imported from a file
    hostname string
    Container host name
    logging boolean
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts string[]
    Mounts from /container/mounts/ sub-menu to be used with this container
    remoteImage string
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    rootDir string
    Used to save container store outside main memory
    startOnBoot boolean
    Start the container on boot
    stopSignal string
    Signal to stop the container.
    timeouts ContainerTimeouts
    user string
    Sets the username used
    workdir string
    The working directory for cmd entrypoint
    interface str
    veth interface to be used with the container
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    cmd str
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment str
    container_id str
    The ID of this resource.
    dns str
    Set custom DNS servers
    domain_name str
    Container NIS domain name
    entrypoint str
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist str
    list of environmental variables (configured under /container envs ) to be used with container
    file str
    container *tar.gz tarball if the container is imported from a file
    hostname str
    Container host name
    logging bool
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts Sequence[str]
    Mounts from /container/mounts/ sub-menu to be used with this container
    remote_image str
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    root_dir str
    Used to save container store outside main memory
    start_on_boot bool
    Start the container on boot
    stop_signal str
    Signal to stop the container.
    timeouts ContainerTimeoutsArgs
    user str
    Sets the username used
    workdir str
    The working directory for cmd entrypoint
    interface String
    veth interface to be used with the container
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    cmd String
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment String
    containerId String
    The ID of this resource.
    dns String
    Set custom DNS servers
    domainName String
    Container NIS domain name
    entrypoint String
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist String
    list of environmental variables (configured under /container envs ) to be used with container
    file String
    container *tar.gz tarball if the container is imported from a file
    hostname String
    Container host name
    logging Boolean
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts List<String>
    Mounts from /container/mounts/ sub-menu to be used with this container
    remoteImage String
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    rootDir String
    Used to save container store outside main memory
    startOnBoot Boolean
    Start the container on boot
    stopSignal String
    Signal to stop the container.
    timeouts Property Map
    user String
    Sets the username used
    workdir String
    The working directory for cmd entrypoint

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Container resource produces the following output properties:

    Arch string
    The architecture of the container image
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Assign a name to the container
    Os string
    The OS of the container image
    Status string
    The status of the container
    Tag string
    The tag of the container image
    Arch string
    The architecture of the container image
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Assign a name to the container
    Os string
    The OS of the container image
    Status string
    The status of the container
    Tag string
    The tag of the container image
    arch String
    The architecture of the container image
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Assign a name to the container
    os String
    The OS of the container image
    status String
    The status of the container
    tag String
    The tag of the container image
    arch string
    The architecture of the container image
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Assign a name to the container
    os string
    The OS of the container image
    status string
    The status of the container
    tag string
    The tag of the container image
    arch str
    The architecture of the container image
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Assign a name to the container
    os str
    The OS of the container image
    status str
    The status of the container
    tag str
    The tag of the container image
    arch String
    The architecture of the container image
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Assign a name to the container
    os String
    The OS of the container image
    status String
    The status of the container
    tag String
    The tag of the container image

    Look up Existing Container Resource

    Get an existing Container resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ContainerState, opts?: CustomResourceOptions): Container
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            arch: Optional[str] = None,
            cmd: Optional[str] = None,
            comment: Optional[str] = None,
            container_id: Optional[str] = None,
            dns: Optional[str] = None,
            domain_name: Optional[str] = None,
            entrypoint: Optional[str] = None,
            envlist: Optional[str] = None,
            file: Optional[str] = None,
            hostname: Optional[str] = None,
            interface: Optional[str] = None,
            logging: Optional[bool] = None,
            mounts: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            os: Optional[str] = None,
            remote_image: Optional[str] = None,
            root_dir: Optional[str] = None,
            start_on_boot: Optional[bool] = None,
            status: Optional[str] = None,
            stop_signal: Optional[str] = None,
            tag: Optional[str] = None,
            timeouts: Optional[ContainerTimeoutsArgs] = None,
            user: Optional[str] = None,
            workdir: Optional[str] = None) -> Container
    func GetContainer(ctx *Context, name string, id IDInput, state *ContainerState, opts ...ResourceOption) (*Container, error)
    public static Container Get(string name, Input<string> id, ContainerState? state, CustomResourceOptions? opts = null)
    public static Container get(String name, Output<String> id, ContainerState state, CustomResourceOptions options)
    resources:  _:    type: routeros:Container    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arch string
    The architecture of the container image
    Cmd string
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    Comment string
    ContainerId string
    The ID of this resource.
    Dns string
    Set custom DNS servers
    DomainName string
    Container NIS domain name
    Entrypoint string
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    Envlist string
    list of environmental variables (configured under /container envs ) to be used with container
    File string
    container *tar.gz tarball if the container is imported from a file
    Hostname string
    Container host name
    Interface string
    veth interface to be used with the container
    Logging bool
    if set to yes, all container-generated output will be shown in the RouterOS log
    Mounts List<string>
    Mounts from /container/mounts/ sub-menu to be used with this container
    Name string
    Assign a name to the container
    Os string
    The OS of the container image
    RemoteImage string
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    RootDir string
    Used to save container store outside main memory
    StartOnBoot bool
    Start the container on boot
    Status string
    The status of the container
    StopSignal string
    Signal to stop the container.
    Tag string
    The tag of the container image
    Timeouts ContainerTimeouts
    User string
    Sets the username used
    Workdir string
    The working directory for cmd entrypoint
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Arch string
    The architecture of the container image
    Cmd string
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    Comment string
    ContainerId string
    The ID of this resource.
    Dns string
    Set custom DNS servers
    DomainName string
    Container NIS domain name
    Entrypoint string
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    Envlist string
    list of environmental variables (configured under /container envs ) to be used with container
    File string
    container *tar.gz tarball if the container is imported from a file
    Hostname string
    Container host name
    Interface string
    veth interface to be used with the container
    Logging bool
    if set to yes, all container-generated output will be shown in the RouterOS log
    Mounts []string
    Mounts from /container/mounts/ sub-menu to be used with this container
    Name string
    Assign a name to the container
    Os string
    The OS of the container image
    RemoteImage string
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    RootDir string
    Used to save container store outside main memory
    StartOnBoot bool
    Start the container on boot
    Status string
    The status of the container
    StopSignal string
    Signal to stop the container.
    Tag string
    The tag of the container image
    Timeouts ContainerTimeoutsArgs
    User string
    Sets the username used
    Workdir string
    The working directory for cmd entrypoint
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    arch String
    The architecture of the container image
    cmd String
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment String
    containerId String
    The ID of this resource.
    dns String
    Set custom DNS servers
    domainName String
    Container NIS domain name
    entrypoint String
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist String
    list of environmental variables (configured under /container envs ) to be used with container
    file String
    container *tar.gz tarball if the container is imported from a file
    hostname String
    Container host name
    interface_ String
    veth interface to be used with the container
    logging Boolean
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts List<String>
    Mounts from /container/mounts/ sub-menu to be used with this container
    name String
    Assign a name to the container
    os String
    The OS of the container image
    remoteImage String
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    rootDir String
    Used to save container store outside main memory
    startOnBoot Boolean
    Start the container on boot
    status String
    The status of the container
    stopSignal String
    Signal to stop the container.
    tag String
    The tag of the container image
    timeouts ContainerTimeouts
    user String
    Sets the username used
    workdir String
    The working directory for cmd entrypoint
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    arch string
    The architecture of the container image
    cmd string
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment string
    containerId string
    The ID of this resource.
    dns string
    Set custom DNS servers
    domainName string
    Container NIS domain name
    entrypoint string
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist string
    list of environmental variables (configured under /container envs ) to be used with container
    file string
    container *tar.gz tarball if the container is imported from a file
    hostname string
    Container host name
    interface string
    veth interface to be used with the container
    logging boolean
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts string[]
    Mounts from /container/mounts/ sub-menu to be used with this container
    name string
    Assign a name to the container
    os string
    The OS of the container image
    remoteImage string
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    rootDir string
    Used to save container store outside main memory
    startOnBoot boolean
    Start the container on boot
    status string
    The status of the container
    stopSignal string
    Signal to stop the container.
    tag string
    The tag of the container image
    timeouts ContainerTimeouts
    user string
    Sets the username used
    workdir string
    The working directory for cmd entrypoint
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    arch str
    The architecture of the container image
    cmd str
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment str
    container_id str
    The ID of this resource.
    dns str
    Set custom DNS servers
    domain_name str
    Container NIS domain name
    entrypoint str
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist str
    list of environmental variables (configured under /container envs ) to be used with container
    file str
    container *tar.gz tarball if the container is imported from a file
    hostname str
    Container host name
    interface str
    veth interface to be used with the container
    logging bool
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts Sequence[str]
    Mounts from /container/mounts/ sub-menu to be used with this container
    name str
    Assign a name to the container
    os str
    The OS of the container image
    remote_image str
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    root_dir str
    Used to save container store outside main memory
    start_on_boot bool
    Start the container on boot
    status str
    The status of the container
    stop_signal str
    Signal to stop the container.
    tag str
    The tag of the container image
    timeouts ContainerTimeoutsArgs
    user str
    Sets the username used
    workdir str
    The working directory for cmd entrypoint
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    arch String
    The architecture of the container image
    cmd String
    The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.
    comment String
    containerId String
    The ID of this resource.
    dns String
    Set custom DNS servers
    domainName String
    Container NIS domain name
    entrypoint String
    An ENTRYPOINT allows to specify executable to run when starting container. Example: /bin/sh
    envlist String
    list of environmental variables (configured under /container envs ) to be used with container
    file String
    container *tar.gz tarball if the container is imported from a file
    hostname String
    Container host name
    interface String
    veth interface to be used with the container
    logging Boolean
    if set to yes, all container-generated output will be shown in the RouterOS log
    mounts List<String>
    Mounts from /container/mounts/ sub-menu to be used with this container
    name String
    Assign a name to the container
    os String
    The OS of the container image
    remoteImage String
    The container image name to be installed if an external registry is used (configured under /container/config set registry-url=...)
    rootDir String
    Used to save container store outside main memory
    startOnBoot Boolean
    Start the container on boot
    status String
    The status of the container
    stopSignal String
    Signal to stop the container.
    tag String
    The tag of the container image
    timeouts Property Map
    user String
    Sets the username used
    workdir String
    The working directory for cmd entrypoint

    Supporting Types

    ContainerTimeouts, ContainerTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    #The ID can be found via API or the terminal

    #The command for the terminal is -> :put [/container get [print show-ids]]

    $ pulumi import routeros:index/container:Container busybox "*1"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    routeros terraform-routeros/terraform-provider-routeros
    License
    Notes
    This Pulumi package is based on the routeros Terraform Provider.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros